简体   繁体   中英

Spring MVC or Spring Boot for wildfly deployment

I am converting Java web project into Spring Project. (10 JSP and 5 controllers connecting to DB)

We are using Wildfly server for deployment.

Is there any use of creating Spring Boot project (though i have facilities like actuators, starters etc.)

or

Is it fine to create Spring MVC Project and deploy the war in Wildfly as i am not using any container here and spring boot project will be an overhead? Basically i am finding why should i use spring boot here?

it depends.

Spring boot is just SpringMVC + Tomcat in one JAR (very simplified definition, I know).

If you have an existing and working Wildfly Server, use it. Compile your web app as WAR an deploy it. You will have also better configuraiton, server update and server bugfixing possibilities. At least that was in my case, as my team mates had a lot of experience with Wildfly.

We are using SpringBoot for small pure REST (micro)services (without HTML, JSP), since they are fast to implement and to deploy (just run a jar file). All of these applications have their own Tomcat server - with own PORT. If you want a new Tomcat version you have to recompile your application. This could be a disadvantage (but not realy).

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