| | |
| | | * @tag |
| | | */ |
| | | @SpringBootApplication(scanBasePackages = {"com.java110.service", "com.java110.order", |
| | | "com.java110.core", "com.java110.event.order", "com.java110.cache", "com.java110.db"}) |
| | | "com.java110.core", "com.java110.event.order", "com.java110.cache", "com.java110.config.properties.code","com.java110.db"}) |
| | | @EnableDiscoveryClient |
| | | //@EnableConfigurationProperties(EventProperties.class) |
| | | @Java110ListenerDiscovery(listenerPublishClass = DataFlowEventPublishing.class, |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) throws Exception { |
| | | ApplicationContext context = SpringApplication.run(OrderServiceApplicationStart.class, args); |
| | | try { |
| | | ApplicationContext context = SpringApplication.run(OrderServiceApplicationStart.class, args); |
| | | |
| | | //服务启动加载 |
| | | ServiceStartInit.initSystemConfig(context); |
| | | //服务启动加载 |
| | | ServiceStartInit.initSystemConfig(context); |
| | | |
| | | //加载事件数据 |
| | | //EventConfigInit.initSystemConfig(); |
| | | //加载事件数据 |
| | | //EventConfigInit.initSystemConfig(); |
| | | |
| | | //刷新缓存 |
| | | flushMainCache(args); |
| | | //刷新缓存 |
| | | flushMainCache(args); |
| | | }catch (Throwable e){ |
| | | logger.error("系统启动失败",e); |
| | | } |
| | | } |
| | | |
| | | |