|
|
@@ -33,6 +33,7 @@ import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
+import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
|
|
|
import org.springframework.boot.web.client.RestTemplateBuilder;
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|
|
@@ -58,7 +59,22 @@ import java.util.concurrent.TimeUnit;
|
|
|
* 这个服务是将 系统部署为spring boot版
|
|
|
* 如果是spring cloud 微服务部署 不用启动这个类
|
|
|
*
|
|
|
- *
|
|
|
+ * excludeName = {
|
|
|
+ "com.java110.intf.acct",
|
|
|
+ "com.java110.intf.code",
|
|
|
+ "com.java110.intf.common",
|
|
|
+ "com.java110.intf.community",
|
|
|
+ "com.java110.intf.demo",
|
|
|
+ "com.java110.intf.dev",
|
|
|
+ "com.java110.intf.fee",
|
|
|
+ "com.java110.intf.goods",
|
|
|
+ "com.java110.intf.job",
|
|
|
+ "com.java110.intf.oa",
|
|
|
+ "com.java110.intf.order",
|
|
|
+ "com.java110.intf.report",
|
|
|
+ "com.java110.intf.store",
|
|
|
+ "com.java110.intf.user"
|
|
|
+ }
|
|
|
* @version v0.1
|
|
|
* @auther com.java110.wuxw
|
|
|
* @mail 928255095@qq.com
|
|
|
@@ -66,8 +82,8 @@ import java.util.concurrent.TimeUnit;
|
|
|
* @tag
|
|
|
*/
|
|
|
@SpringBootApplication(scanBasePackages = {
|
|
|
- "com.java110.service.configuration",
|
|
|
- "com.java110.service.init",
|
|
|
+ "com.java110.service",
|
|
|
+ "com.java110.db",
|
|
|
"com.java110.core",
|
|
|
"com.java110.config.properties.code",
|
|
|
"com.java110.acct",
|
|
|
@@ -81,7 +97,13 @@ import java.util.concurrent.TimeUnit;
|
|
|
"com.java110.report",
|
|
|
"com.java110.store",
|
|
|
"com.java110.user",
|
|
|
-})
|
|
|
+ "com.java110.boot"
|
|
|
+},
|
|
|
+ exclude = {LiquibaseAutoConfiguration.class,
|
|
|
+ org.activiti.spring.boot.SecurityAutoConfiguration.class,
|
|
|
+ org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class}
|
|
|
+
|
|
|
+)
|
|
|
@Java110CmdDiscovery(cmdPublishClass = ServiceCmdEventPublishing.class,
|
|
|
basePackages = {
|
|
|
"com.java110.acct.cmd",
|
|
|
@@ -96,8 +118,6 @@ import java.util.concurrent.TimeUnit;
|
|
|
"com.java110.store.cmd",
|
|
|
"com.java110.user.cmd"
|
|
|
})
|
|
|
-@EnableDiscoveryClient
|
|
|
-@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
|
|
|
@EnableAsync
|
|
|
public class BootApplicationStart {
|
|
|
|
|
|
@@ -121,7 +141,7 @@ public class BootApplicationStart {
|
|
|
@Bean
|
|
|
@ConditionalOnBean(Java110FeignClientInterceptor.class)
|
|
|
public okhttp3.OkHttpClient okHttpClient(@Autowired
|
|
|
- Java110FeignClientInterceptor okHttpLoggingInterceptor){
|
|
|
+ Java110FeignClientInterceptor okHttpLoggingInterceptor) {
|
|
|
okhttp3.OkHttpClient.Builder ClientBuilder = new okhttp3.OkHttpClient.Builder()
|
|
|
.readTimeout(30, TimeUnit.SECONDS) //读取超时
|
|
|
.connectTimeout(10, TimeUnit.SECONDS) //连接超时
|