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?