linux tomcat springboot的war包运行失败的问题

出现的问题如下所示

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包才是正确的

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值