spring-boot-migrator
spring-boot-migrator copied to clipboard
Add support for classes annotated with @WebFilter
What needs to be done
HTTP Listener annotated with @WebFilter should be handled by migrate-annotated-servlets recipe.
While looking at the code this should be the case already (the annotation has package javax.servlet.*.
Implement a new / extend an existing test to verify that web filters annotated with @WebFilter are available in the migrated Spring Boot application.
Why it needs to be done
@WebFilter works similar to @WebServlet but it's not tested (and might require enhancing of the recipe).
Acceptance Criteria
Given A JEE application has a event listener annotated with @WebFilter
When migrate-annotated-servlets is applied
Then The migrated Spring Application must recognize and initialize the WebFilter