Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is the servletapi dependency required?

dependency
0
Posted

Is the servletapi dependency required?

0

No, it is not always required. It will only be required if you need to use the HttpRequestResolver to work on HTTP request objects, but you can remove it if you don’t need it. If you are not developing a web application, you will most certainly not have a servlet implementation available in your environment. Note that if you don’t add a servlet api to the classpath, the framework will detect it and the HttpRequestResolver will not be registered at startup.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.