Spring Boot package web application to .jar

后端 未结 3 1239
孤街浪徒
孤街浪徒 2021-02-13 15:11

Why Spring Boot by default packaging web applications as .jar ? Are there any advantages over .war ?

Shouldn\'t be all web applications packed as .war i

3条回答
  •  醉酒成梦
    2021-02-13 16:01

    By default Spring boot will provide you with embedded Tomcat (in jar). Deploying such jar will make you less dependant on the environment and requires less configuration ("out of the box solution").

    See very similar question and its answers.

提交回复
热议问题