spring-boot-migrator icon indicating copy to clipboard operation
spring-boot-migrator copied to clipboard

Add support for classes annotated with @WebFilter

Open fabapp2 opened this issue 3 years ago • 0 comments

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

Additional Information

fabapp2 avatar Mar 28 '22 16:03 fabapp2