| | |
| | | |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(GunsApplication.class, args); |
| | | |
| | | try { |
| | | //启动定时任务调度器 |
| | | QuartzUtil.start(GunsApplication.class.getClassLoader().getResourceAsStream("quartz.properties")); |
| | | } catch (SchedulerException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | //启动定时任务调度器 |
| | | QuartzUtil.start(GunsApplication.class.getClassLoader().getResourceAsStream("quartz.properties")); |
| | | logger.info("GunsApplication is success!"); |
| | | } |
| | | |
| | | |
| | | // @PostConstruct |
| | | // void started() { |
| | | // TimeZone.setDefault(TimeZone.getTimeZone("GMT+0")); |
| | | // } |
| | | @PostConstruct |
| | | void started() { |
| | | TimeZone.setDefault(TimeZone.getTimeZone("GMT+0")); |
| | | } |
| | | |
| | | |
| | | @Bean //SpringCloud内部服务质检使用服务名调用 |