无法在外部tomcat中部署springboot应用程序 [英] Not able to deploy springboot application in an external tomcat
问题描述
当尝试在外部tomcat中部署springboot应用程序时,我无法部署.在pom.xml中,如果我排除了tomcat依赖项,那么我就不会遇到编译时错误.由于我在项目中使用过tomcat jar类.请让我知道如何部署该项目.
While trying to deploy a springboot application in an external tomcat, I'm not able to deploy. In the pom.xml ,if i exclude tomcat dependency then im not facing compile time error. Since i have used tomcat jar classes in my project. Please let me know how to deploy the project.
推荐答案
作为@Gableg答案的补充,
As an addition @Gableg's answer,
在pom.xml中:
<packaging>war</packaging>
设置为war not jar.
<packaging>war</packaging>
set as war not jar.
基本上@Gableg的两个条件和上面指定的我的条件就足够了. 树状条件足以使应用程序可在外部tomcat中部署.
Basically @Gableg's two condition and my condition i specified above is enough. Tree condition is enough to make an app deployable in external tomcat.
我在下面引用了视频.它确实有用.
I referenced the video in below.It is really usable.
https://www.youtube.com/watch?v=05EKZ9Xmfws
这篇关于无法在外部tomcat中部署springboot应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!