Are Spring boot 2.2.x apps deployable to Servlet 3.0 containers - spring-boot

I didn't find enough documentation on spring-boot and Servlet Container compatability. What should be the minimum Servlet specification implementation required for deploying Spring-boot 2.2.x apps?

as written in the documentation of Spring boot 2.2.0.RELEASE on page 4-5.
'You can also deploy Spring Boot applications to any Servlet 3.1+ compatible container.'
https://docs.spring.io/spring-boot/docs/2.2.0.RELEASE/reference/pdf/spring-boot-reference.pdf

Related

Does Spring Cloud Hoxton.SR3 compatible with Spring Boot 2.3.11?

I would like to know Spring Cloud Hoxton.SR3 is compatible with Spring Boot 2.3.11 ?
The Spring Cloud project page contains a version compatibility table. Spring Cloud Hoxton is compatible with Spring Boot 2.2.x and, as of SR5, Spring Boot 2.3.x. In short, Spring Cloud Hoxton.SR3 is not compatible with Spring Boot 2.3.11.

How to deploy Spring Cloud Gateway 2.1 on Jboss or Tomcat?

I want to a deploy Spring Cloud Gateway but it is built on Spring Framework 5, Project Reactor.
Can I create a WAR file and deploy it on a traditional application server such as Jboss or Tomcat.
The Spring documentation in this page says it is possible.
Spring WebFlux is supported on Tomcat, Jetty, Servlet 3.1+ containers
Note:
this is Spring Cloud Gateway project link
https://spring.io/projects/spring-cloud-gateway
I don't think this is possible, as Spring Cloud Gateway is itself a Spring Boot WebFlux application and this use case is only supported with embedded servers, as mentioned in the Spring Boot reference documentation.

Is it possible to run Spring boot 2.x on Jboss EAP 6.4.x?

Is it possible to run Spring boot 2.x on Jboss EAP 6.4.x?
After deploying I can't reach the service.
I get 404 when trying to reach the service.
Thanks in advance!
I have already answer to my question.
You can't use Spring boot 2 with Jboss 6.x because Spring Boot is build on Spring 5 and Spring 5 does not support Servlet 3.0 which is used in Jboss 6.x.
Spring 5 supports Servlet 3.1 and above

Can I deploy a spring-boot 2.0 WAR on a Tomcat 8.0.x?

spring-boot 2.0 has been available for a week now. The blog posts mention that there's now a Tomcat 8.5 baseline for embedded tomcat.
Does that also mean I need to have a Tomcat 8.5 if I use WAR deployment of my spring-boot 2.0 application, or would a Tomcat 8.0.x still work?
The official Spring Boot 2.0.0 documentation points to Tomcat 8.5 as the baseline version for embedded servers.
Spring Framework 5.0 itself requires Servlet 3.1+ containers and Tomcat 8.5+ for both embedded and war deployments.
Although deploying Spring MVC applications to a Tomcat 8.0.x server might still work, it won't be officially supported by Spring Framework nor Spring Boot.

how to use web.xml file into spring boot application without extend WsConfigurerAdapter?

I am using spring-boot to develop webservices, but I don't want to use WsConfigurerAdapter to define a WSDL and all, because I want to deploy my war into WAS7 and it does not support Servlet 3.0. So how would I add a web.xml configuration into my application.
Spring Boot doesn't support Servlet 2.5 out of the box, however you can use Spring Boot Legacy to get things working. Take a look at the Google App Engine sample application for an example of how to use Spring Boot Legacy and web.xml.
You may also be interested in this Spring Boot issue which is proposing to make Spring Boot Legacy an official part of Spring Boot.

Resources