Quantcast
Channel: Active questions tagged servlets - Stack Overflow
Viewing all articles
Browse latest Browse all 717

How to create a library that will work for both Spring Boot 3 and Spring Boot 2 and use HttpServletRequest?

$
0
0

I have a library I'm creating that has a bean that is RequestScope and it has an autowired HttpServletRequest object. This works fine when used in a Spring Boot 2 application. But when I try to use this library in a Spring Boot 3 service, it doesn't work because of the switch from javax.servlet to jakarta.servlet for the HttpServletRequest object.

Is there anyway without creating two separate versions of my library to support both 2 and 3?


Viewing all articles
Browse latest Browse all 717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>