79113774

Date: 2024-10-22 11:20:02
Score: 1
Natty:
Report link

Are you sure that your filer is invoked at all? Do you see any outputs in logs from your filter? (BTW I would suggest using logger instead of System.out.println). I think that you are missing the annotation @Order and may be your filter is not in use. ALso, since you only want to apply your filter for the path "/flight/*" there is a better way to register your filter using a FilterRegistrationBean. See a good article on the subject here: How to Define a Spring Boot Filter?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Michael Gantman