Your Name
2023-04-05 b6949a31464f2ca4e790affd467dcfc511223ba2
service-store/src/main/java/com/java110/store/StoreServiceApplicationStart.java
@@ -48,7 +48,7 @@
 * @tag
 */
@SpringBootApplication(scanBasePackages = {"com.java110.service", "com.java110.store", "com.java110.core",
        "com.java110.config.properties.code", "com.java110.db"})
        "com.java110.config.properties.code", "com.java110.db","com.java110.doc"})
@EnableDiscoveryClient
@Java110ListenerDiscovery(listenerPublishClass = BusinessServiceDataFlowEventPublishing.class,
        basePackages = {"com.java110.store.listener"})
@@ -59,7 +59,9 @@
        "com.java110.intf.fee",
        "com.java110.intf.user",
        "com.java110.intf.common",
        "com.java110.intf.order"
        "com.java110.intf.acct",
        "com.java110.intf.order",
        "com.java110.intf.mall"
})
public class StoreServiceApplicationStart {
@@ -84,6 +86,14 @@
        return restTemplate;
    }
    @Bean
    public RestTemplate outRestTemplate() {
        StringHttpMessageConverter m = new StringHttpMessageConverter(Charset.forName("UTF-8"));
        RestTemplate restTemplate = new RestTemplateBuilder().additionalMessageConverters(m).build(RestTemplate.class);
        return restTemplate;
    }
    public static void main(String[] args) throws Exception {
        try {
            ServiceStartInit.preInitSystemConfig();
@@ -92,6 +102,8 @@
            ServiceStartInit.initSystemConfig(context);
            //加载业务侦听
            //SystemStartLoadBusinessConfigure.initSystemConfig(LISTENER_PATH);
            //服务启动完成
            ServiceStartInit.printStartSuccessInfo();
        } catch (Throwable e) {
            logger.error("系统启动失败", e);
        }