| | |
| | | package com.yssh.utils; |
| | | |
| | | import com.yssh.Application; |
| | | import org.springframework.boot.builder.SpringApplicationBuilder; |
| | | import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; |
| | | |
| | | /** |
| | | * @author wMeng |
| | | * @ClassName ServletInitializer |
| | | * @Description TODO |
| | | * @date 2022/10/31 18:46 |
| | | * @Version 1.0 |
| | | */ |
| | | import com.yssh.Application; |
| | | |
| | | public class ServletInitializer extends SpringBootServletInitializer { |
| | | |
| | | @Override |
| | | protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { |
| | | // 代码设置日志 |
| | | //System.setProperty("logging.config", "classpath:logback.xml"); |
| | | return application.sources(Application.class); |
| | | } |
| | | |