#springboot3 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #springboot3, aggregated by home.social.
-
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 -
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 -
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 -
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 -
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 -
I hit a minor snag with Java 21 during a security review due to tool compatibility issues. Cutting-edge tech is great in the age of containers, but they don't solve all the problems! Transitioning to #SpringBoot3 also meant new security config. #Java21 https://debugagent.com/building-gdocweb-with-java-21-spring-boot-3x-and-beyond
-
This week I've had some hands on practice with #SpringBoot3. I'm still not excited with building things using #frameworks but I'm making an effort to learn.
I did find one thing that I actually think is pretty nice. When you launch an application made in Spring Boot the console output generates a banner which is ok, but then I found out you can change that banner. All you need is an #ASCII_Art file and to tell the application the name of the file, and that's all there is to it.
-
This week I've had some hands on practice with #SpringBoot3. I'm still not excited with building things using #frameworks but I'm making an effort to learn.
I did find one thing that I actually think is pretty nice. When you launch an application made in Spring Boot the console output generates a banner which is ok, but then I found out you can change that banner. All you need is an #ASCII_Art file and to tell the application the name of the file, and that's all there is to it.
-
Privates Kotlin Rumspielprojekt erfolgreich auf Spring Boot 3.2 und Java 21 gebracht.
Lösung für die meisten Probleme war:
1. Gradle selbst mit Java 20 laufen zu lassen
2. Die Java Toolchain im gradlescript perjava {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}auf 21 zu setzen. Aktuell scheint das noch nicht im Spring Initialzr so drin zu sein.
-
-
Let's update our dumb API gateway from #SpringBoot 2 to #SpringBoot3. Should be a walk in the park!
… one week later: 😱
-
#JCON2023 🎥 by Timo Salm: Going #Serverless with #SpringBoot3
He´ll teach you how to implement your serverless applications and compile them to GraalVM native images for almost instant startup times and reduced memory consumption with Spring Boot 3...
Watch now: https://www.youtube.com/watch?v=B3CiGWASRtg&list=PLFeSAZzYdUocPlSKLI2oz6NhKHi5TaPi9&index=1
#Knative -
#JCON2023 🎥 by Timo Salm: Going #Serverless with #SpringBoot3
He´ll teach you how to implement your serverless applications and compile them to GraalVM native images for almost instant startup times and reduced memory consumption with Spring Boot 3...
Watch now: https://www.youtube.com/watch?v=B3CiGWASRtg&list=PLFeSAZzYdUocPlSKLI2oz6NhKHi5TaPi9&index=1
#Knative -
Let’s Build a #Kubernetes Client with #SpringBoot3’s new AOT engine and #GraalVM native images https://tanzu.vmware.com/developer/guides/building-a-kubernetes-client-with-spring-boot-3/
Then do the same in Rust and compare 😏
-
Other things that require attention are obviously the new Spring Security configuration beans. The "new" builder for the secure filter chain requires regression testing on your part.
Similarly, Hibernate @Type annotation has changed: if you had a converter for Money class, JSON (specially Postgres jsonb), UUID, or if you have used LinkedHashMap or TreeMap to deser linear or nester structures: it has changed! Also big text @Lob annotations.
-
If you're migrating to Spring Boot 3 which requires JDK 17, the blast radius of changing all references of "javax." to "jakarta." is not small!
Start by finding updated versions of the most fringe libs in your full dependency list. Don't worry about the major projects, it's the small version 0.0.1 ones that you need to worry about.
If you upgrade a dependency, please raise a PR, push changes upstream.
#spring #springboot #springboot3 #java #kotlin #scala #clojure
-
-
How to provide a RuntimeHint for #springboot3 native when the class is internal?
-
Does anyone know how to use TypeHints in #springboot3 for a custom validator? The native executable not calling it properly.
-
Podcast Server migrated to Spring Boot 3 🎉
It was very simple, thanks to all the Spring team! 🚀
This is on `main` and will be released in Podcast-Server v2022.12.0
-
Ich schreibe gerade einen Artikel über #SpringBoot3 und #Spring6 für unseren internen Tech Radar und @rotnroll666 hat dankenswerterweise meine Arbeit erledigt. https://www.heise.de/hintergrund/Spring-Framework-6-verarbeitet-Native-Images-und-baut-auf-Jakarta-EE-9-oder-10-7342050.html
-
Si j'ai le temps, je vais essayer de migrer mon workshop basé sur Spring Boot / Cloud/... En #SpringBoot3
Voici quelques recommandations pour la préparer