From ccbf64566d30ebe8c4f205051181a8e4f3399dc3 Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期日, 07 七月 2019 01:43:03 +0800
Subject: [PATCH] 服务管理和应用管理开发测试完成
---
UserService/src/main/java/com/java110/user/UserServiceApplicationStart.java | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
diff --git a/UserService/src/main/java/com/java110/user/UserServiceApplicationStart.java b/UserService/src/main/java/com/java110/user/UserServiceApplicationStart.java
index 45589ec..3784a50 100644
--- a/UserService/src/main/java/com/java110/user/UserServiceApplicationStart.java
+++ b/UserService/src/main/java/com/java110/user/UserServiceApplicationStart.java
@@ -1,24 +1,16 @@
package com.java110.user;
import com.java110.core.annotation.Java110ListenerDiscovery;
-import com.java110.event.center.DataFlowEventPublishing;
import com.java110.event.service.BusinessServiceDataFlowEventPublishing;
-import com.java110.event.service.init.SystemStartLoadBusinessConfigure;
import com.java110.service.init.ServiceStartInit;
-import org.apache.catalina.Context;
-import org.apache.catalina.connector.Connector;
-import org.apache.tomcat.util.descriptor.web.SecurityCollection;
-import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
-import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
-import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
-import org.springframework.cloud.netflix.feign.EnableFeignClients;
+import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.http.converter.StringHttpMessageConverter;
@@ -37,13 +29,13 @@
* @tag
*/
@SpringBootApplication(
- scanBasePackages = {"com.java110.service", "com.java110.user", "com.java110.core", "com.java110.cache"},
+ scanBasePackages = {"com.java110.service", "com.java110.user", "com.java110.core", "com.java110.cache", "com.java110.db"},
excludeName = {"com.java110.core.smo.user"}
- )
+)
@EnableDiscoveryClient
@Java110ListenerDiscovery(listenerPublishClass = BusinessServiceDataFlowEventPublishing.class,
basePackages = {"com.java110.user.listener"})
-//@EnableFeignClients(basePackages = {"com.java110.core.smo"})
+@EnableFeignClients(basePackages = {"com.java110.core.smo.community"})
public class UserServiceApplicationStart {
private static Logger logger = LoggerFactory.getLogger(UserServiceApplicationStart.class);
--
Gitblit v1.8.0