home.social

#springboot3 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #springboot3, aggregated by home.social.

  1. 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

  2. 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

  3. 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.









  4. 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

  5. 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

  6. 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 debugagent.com/building-gdocwe

  7. 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.

  8. 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.

  9. 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 per

    java {
    toolchain {
    languageVersion = JavaLanguageVersion.of(21)
    }
    }

    auf 21 zu setzen. Aktuell scheint das noch nicht im Spring Initialzr so drin zu sein.

    #Java #Kotlin #Spring #SpringBoot #SpringBoot3

  10. Let's update our dumb API gateway from #SpringBoot 2 to #SpringBoot3. Should be a walk in the park!

    … one week later: 😱

  11. #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: youtube.com/watch?v=B3CiGWASRt
    #Knative

  12. #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: youtube.com/watch?v=B3CiGWASRt
    #Knative

  13. 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.

    #spring #springboot #springboot3 #java #kotlin #scala

  14. 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

  15. one does not simply
    do a migration

  16. Does anyone know how to use TypeHints in for a custom validator? The native executable not calling it properly.

  17. 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

    gitlab.com/davinkevin/Podcast-

  18. 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

    t.co/iSUERs4vJB