Преглед изворни кода

build: 修改hibernate ddl配置,禁用重复的bean配置

suntg пре 7 година
родитељ
комит
47a7b0333d

+ 1 - 1
src/main/java/com/uas/ps/product/Application.java

@@ -21,7 +21,7 @@ import java.io.PrintStream;
  * @since 2017年8月16日 下午4:00:03
  */
 @EnableTransactionManagement
-@SpringBootApplication
+@SpringBootApplication(scanBasePackages = {"com.uas.ps"})
 @EnableWebMvc
 //@EnableSSO
 public class Application {

+ 2 - 1
src/main/java/com/uas/ps/product/RestTemplateConfiguration.java

@@ -8,7 +8,8 @@ import org.springframework.web.client.RestTemplate;
  * RestTemplate 配置类
  * @author hulh
  */
-@Configuration
+@Deprecated
+//@Configuration
 public class RestTemplateConfiguration {
 
     @Bean

+ 2 - 1
src/main/java/com/uas/ps/product/UrlConfiguration.java

@@ -8,7 +8,8 @@ import org.springframework.context.annotation.Configuration;
  * RestTemplate 配置类
  * @author hulh
  */
-@Configuration
+@Deprecated
+//@Configuration
 public class UrlConfiguration {
 
     @Bean

+ 1 - 1
src/main/resources/application.yml

@@ -9,7 +9,7 @@ spring:
      region:
       factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
     hbm2ddl:
-     auto: update
+     auto: none
  kafka:
   bootstrap-servers: 10.10.100.11:9292,10.10.100.12:9292,10.10.100.13:9292,10.10.100.14:9292,10.10.100.15:9292,10.10.100.16:9292
 #  consumer