shiyj
2019-07-07 348c483d9e8cf81c485289a44c717fe1c23f4065
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;
@@ -36,11 +28,14 @@
 * @date 2016年8月6日
 * @tag
 */
@SpringBootApplication(scanBasePackages = {"com.java110.service", "com.java110.user", "com.java110.core", "com.java110.cache"})
@SpringBootApplication(
        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);