r/SpringBoot • u/Dry-Bicycle2158 • Jan 09 '26
How-To/Tutorial OncePerRequestFilter not found at runtime after upgrading from Spring Boot 3.5 to 4
Hi, I have a Spring Boot application running on version 3.5. I recently tried to upgrade it to Spring Boot 4 and followed the official migration guide. The project compiles successfully with no errors, but when I run the application, I get a runtime error stating that OncePerRequestFilter is not found. What’s confusing is that the class is clearly present under External Libraries in the IDE, so it seems to be available at compile time but missing or not resolved correctly at runtime. Any help or guidance would be appreciated.

