| | |
| | | |
| | | import com.product.core.spring.context.SpringBeanUtil; |
| | | import com.product.customer.service.CreateSignatureFile; |
| | | import com.product.file.util.PdfConcurrenceUtil; |
| | | |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; |
| | |
| | | * 初始集群客户端连接池 |
| | | * 扫描多个路径 |
| | | */ |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product", "org.spring.service.core"}) |
| | | @SpringBootApplication(exclude = DataSourceAutoConfiguration.class, scanBasePackages = {"com.product","com.home","org.spring.service.core"}) |
| | | public class Application extends SpringBootServletInitializer { |
| | | |
| | | @Override |
| | |
| | | RegistValidate.getInstance().registValidateParameter(); |
| | | boolean connFlat = DataSourceManager.getInstance().initClientConnectionPool(); |
| | | InitialLoad.runInitialization(); |
| | | PdfConcurrenceUtil.init(); |
| | | String rootPath = ResourceUtils.getURL("classpath:").getPath(); |
| | | Global.setPropertyValue("root.path", rootPath); |
| | | Global.setPropertyValue("jdk.home", System.getProperties().getProperty("java.home")); |
| | |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed:"+e.getMessage()); |
| | | SpringMVCContextHolder.getSystemLogger().error("System startup failed, Please contact the administrator!"); |
| | | } |
| | | } |
| | | } |