| | |
| | | * 初始集群客户端连接池 |
| | | * 扫描多个路径 |
| | | */ |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product","com.home","org.spring.service.core"}) |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product","com.home","org.spring.service.core","cn.pomit"}) |
| | | public class Application extends SpringBootServletInitializer { |
| | | |
| | | @Override |
| | |
| | | SpringBeanUtil.getBean(CreateSignatureFile.class).analysisSignaturePatch(); |
| | | SpringMVCContextHolder.getSystemLogger().info("root.path:" + rootPath); |
| | | SpringMVCContextHolder.getSystemLogger().info("jdk.home:" + System.getProperties().getProperty("java.home")); |
| | | if (cacheFlat && codeFlat && connFlat) { |
| | | if (cacheFlat && codeFlat && connFlat) { |
| | | SpringMVCContextHolder.getSystemLogger().info("Successful System Startup ! "); |
| | | } else { |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed:"+e.getMessage()); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed:" + e.getMessage()); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } |