开发者

Deploy and run two applications on one tomcat

开发者 https://www.devze.com 2023-02-03 19:54 出处:网络
I currently have one .war running on tomcat, I wonder if I put another .war in webapp directory, will it work also? if they have different names? I should really try this because webapp currently runn

I currently have one .war running on tomcat, I wonder if I put another .war in webapp directory, will it work also? if they have different names? I should really try this because webapp currently running is important so I have to ch开发者_运维技巧eck first.

So if I have appX running, and if I put appY in webapp directory will I be able to run two web projects ?


Yes. Tomcat will unwrap your war file to create a directory by the same name. You should then be able to browse both applciations at the respective context path. For example, localhost:8080/appX and http://localhost:8080/appY.

0

精彩评论

暂无评论...
验证码 换一张
取 消