Spring boot 3 – Jakarta and Javax

The answer will really depend on which specific libraries you’re using and how they interact with each other, but generally speaking trying to mix Java EE and Jakarta EE them would be a bad idea.

As an example, if you’re writing a Spring MVC application then you’ll be using the DispatcherServlet. In Spring Framework 6 this will require the Jakarta Servlet API. There’s not going to be a way to make it work with the javax.servlet For other APIs, if you’re using them directly and you’re not making use of Spring abstractions that build on them, you may get away with having them on your classpath. I still wouldn’t recommend it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)