Tomcat部署问题
最新版本: 2.2.0(发布日期:2020-05-06)Tomcat8.5.1.6:
org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string . Default version will be used.
30-Jun-2020 10:15:33.711 INFO org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.16
30-Jun-2020 10:15:33.755 INFO org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive
30-Jun-2020 10:15:35.384 WARNING org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string . Default version will be used.
30-Jun-2020 10:15:40.960 INFO org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
30-Jun-2020 10:15:41.156 INFO org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive has finished in ms
30-Jun-2020 10:15:41.157 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:15:41.170 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:15:41.170 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:15:41.181 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:15:41.181 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:15:41.311 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:15:41.311 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:15:41.328 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:15:41.329 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:15:41.343 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:15:41.348 INFO org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8888"]
30-Jun-2020 10:15:41.363 INFO org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8012"]
Tomcat9.0.3.6
30-Jun-2020 10:09:46.527 INFO org.apache.catalina.core.StandardService.startInternal Starting service
30-Jun-2020 10:09:46.527 INFO org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine:
30-Jun-2020 10:09:46.544 INFO org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive
30-Jun-2020 10:09:53.741 INFO org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
30-Jun-2020 10:09:53.900 INFO org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive has finished in ms
30-Jun-2020 10:09:53.901 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:09:53.918 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:09:53.919 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:09:53.935 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:09:53.935 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:09:54.052 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:09:54.053 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:09:54.092 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:09:54.094 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory
30-Jun-2020 10:09:54.121 INFO org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory has finished in ms
30-Jun-2020 10:09:54.125 INFO org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8000"]
30-Jun-2020 10:09:54.141 INFO org.apache.catalina.startup.Catalina.start Server startup in milliseconds
因为8.5报错org.apache.tomcat.util.descriptor.web.WebXml.setVersion Unknown version string . Default version will be used. 所以更换9,但部署后启动没有编译war解压出来的文件
但部署5月份下载的也是这个2.2.0版本 是可以编译部署访问成功的,现在有点搞不懂,求解答
@SpringBootApplication
@EnableSwagger2
public class JeecgApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(JeecgApplication.class);
}
public static void main(String[] args) {
System.setProperty("spring.devtools.restart.enabled", "true");
SpringApplication.run(JeecgApplication.class, args);
}
}
修改类/src/main/java/org/jeecg/JeecgApplication.java替换成这样就可以了
文档有说: 增加项目web容器部署的支持
开始以为是可以不用的
页:
[1]