出现的问题如下所示
17-Jan-2020 10:57:42.715 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
17-Jan-2020 10:57:42.716 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.29
17-Jan-2020 10:57:42.751 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/home/seekcy/tomcat-platform/webapps/ROOT.war]
17-Jan-2020 10:57:47.108 INFO [localhost-startStop-1] 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.
17-Jan-2020 10:57:47.258 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/home/seekcy/tomcat-platform/webapps/ROOT.war] has finished in [4,507] ms
17-Jan-2020 10:57:47.258 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/home/seekcy/tomcat-platform/webapps/hospital]
17-Jan-2020 10:57:47.275 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/home/seekcy/tomcat-platform/webapps/hospital] has finished in [17] ms
17-Jan-2020 10:57:47.278 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-48089"]
17-Jan-2020 10:57:47.286 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-18079"]
17-Jan-2020 10:57:47.289 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 4604 ms
至此就结束了,就再也不会跑下去了,网上找了很多的原因,千篇一律,全部的都是找内存的分配问题啥的,真正的原因是什么呢
找了半天没找到,回归到项目打包
是war包出了问题,问题打包会如下所示
正常打包因该不会出现.original的问题,应该如下图所示
至于为何会出现这个问题呢
因为springboot的打包插件问题,
将plug注释掉重新打包后这个war包才是正确的