[英]What issues can arise from including spring-boot-starter-tomcat when deploying to a Tomcat server?
I converted a Spring MVC web service to Spring Boot (using spring-boot-starter-web). 我将Spring MVC Web服务转换为Spring Boot(使用spring-boot-starter-web)。 The service is packaged as a .war and has been deployed to a Tomcat 8 server, but I forgot to explicitly add the spring-boot-starter-tomcat dependency and mark it provided as per Spring's traditional deployment instructions .
该服务打包为.war并已部署到Tomcat 8服务器,但是我忘了明确添加spring-boot-starter-tomcat依赖项,并将其标记为按照Spring的传统部署说明提供 。
The service appears to be behaving correctly, ie all endpoints return or post the correct data, and I don't see any errors in the server or app logs. 该服务的行为似乎正确,即所有端点都返回或发布了正确的数据,并且在服务器或应用程序日志中没有看到任何错误。
We have a monthly release cycle, so I'm currently planning to correct this next month. 我们有一个每月发布周期,因此我目前正计划在下个月进行更正。 However, I want to understand any potential impact in case I'm missing something and should consider fixing it off-cycle.
但是,我想了解任何潜在的影响,以防万一我丢失了某些东西,应该考虑将其周期外修复。 From my research, it seems most issues from this would occur at deployment/startup time, but the service is deploying and starting up successfully.
根据我的研究,似乎大多数问题是在部署/启动时发生的,但是该服务正在成功部署和启动。 Could there potentially be 2 instances of the service running now, ie embedded Tomcat and the actual Tomcat server?
现在可能正在运行该服务的2个实例,即嵌入式Tomcat和实际的Tomcat服务器吗? Any other potential bugs or ticking time bombs?
还有其他潜在的错误或计时炸弹吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.