We saw in the last tutorial that Servlet 3.0 annotation can be scanned by using @ServletComponentScan. Sometimes, however, that will not be possible to register Servlet Components by using Servlet 3.0 annotations and we would instead like to register them to the container programmatically. For example a library Servlet (or any component) is needed to be registered but we cannot modify the source code to add @WebServlet annotation.
( keywords in 0 s, posts in 0 s )
Findings & News
Share what you like and what inspires you.