javaspringspring-web

Is a Java EE server required when project is made with Spring web?


I started developing a rest service with JavaEE + Glassfish and I noticed Glassfish is no longer in a good position in terms of development from Oracle. I ran into a few bugs that were not being fixed for months despite many reports from users. I decided not to use Glassfish.

I started researching about Spring, does a rest web service developed with Spring need a full EE compatible web server like Glassfish or Tomee? or would it run on something as basic as Apache Tomcat?


Solution

  • Spring does not require a full EE stack, it will run fine in Tomcat or Jetty. See also, Spring Framework - Chapter 1. Basic Application and Environment Setup which demonstrates using Tomcat.