Upgraded to Spring Boot 3 (yes i am late). Found out `@PreAuthorize is a decorative corpse`. You now need `@EnableMethodSecurity(prePostEnabled = true)` to reanimate it. Laughable.
Thankfully, I had tests. Which is ironic, because I wanted to test my code, not Spring’s trust issues.
This dev experience? Trash tier. Writing one annotation to enable another? That’s not configuration—that’s a scavenger hunt in a haunted house. 👻🔍
Annotations should do something when you use them. Not wait for permission like a guilty intern. Imagine you would have to add a Junit annotation to tell, that test failures are thrown.
Should’ve just gone full auth(request) at every endpoint. More stable. Less betrayal.
#SpringBoot3
#WhyTrustWhenYouCanTest
#AnnotationAnxiety
#CodeOrCursedRitual
#IDidntChooseTheBugLife
#PreAuthorizePostMortem
#FrameworkGaslighting
#coding
#programming
