Differences between jar and war in Spring Boot?

后端 未结 5 1708
悲哀的现实
悲哀的现实 2020-12-14 07:05

I\'m about to build my first website in Java with Spring Framework using Spring Boot and it\'s much easier to build it in jar, but I have a few questions about

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 07:09

    I was under the same problem, when I deployed my jar issue free on my local. Then I had to demo it on the server. You can create a war file by changing the pom.xml , tag

    jar
    

    to

    war
    

    and you will have a war file in your target which you can deploy to your server(tomcat in my case)

提交回复
热议问题