简体   繁体   中英

How to chose whether we deploy a jar or a war in Spring-Boot application?

What I understand is we can deploy a spring-boot application as a jar and as a war as well. What I don't understand is when should we go with a jar and a war ? I am talking about spring-boot web apps.

stack overflow

Both ways are equivalent technological wise.

JAR is a preferable way of deploying spring boot application, so consider it it as a first bet.

WAR is required if you already have java web servers (tomcats) managed by people who don't want/need to adopt a new / another way of deployment. Usually this happens in large organizations or organizations with a dedicated IT / adminstration/ops department (many names exist for this), but essentially these are people who are responsible for deployment of the application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM