Hi, Spring fans! How’re y’all doing? Can you believe we’re almost halfway through this crazy little thing called 2021? Time sure flies when you’re having fun! This week was no exception. I joined the my buddy Matt Raible and Brian Demeers today for the OktaDev Twitch channel and we hacked on making the Spring Boot starter for Okta work with Spring Native. The goal is that you should be able to bring your application unchanged with Spring Native, and this is yet another example of that working. We didn’t know what issues we were going to face, but we managed to figure out the relatively minor things required to make it work within an hour and within two hours we had most a working, standalone “hints”
.jar dependency that users can add to their
spring-aot plugins dependencies. Hopefully they’ll polish that off and publish the bits soon.
This Okta starter is in addition to the already integrated, and already working, Spring Security OAuth 5 resource server and OIDC connect support, which already work flawlessly with native images. The TL;DR: if you want an OAuth secured HTTP service in your Spring Native and GraalVM native image, then you’re just about all set.
Also, the video should be online on YouTube soon, so look for that if you want to watch us work. We had a few assists from Spring Native cofounder and lead Andy Clement who contributed from the peanut gallery.
I also built some Spring Native hints for the Jetbrains Exposed ORM framework for Kotlin. It’s the same idea: build the code, then depend on the code from your project’s
spring-aot plugin. Exposed is an awesome, uber-typesafe object mapper or object relationship mapper that is a nice alternative to raw SQL with something like the
JdbcTemplate or declaratie repositories with something like iBatis or Spring Data repositories. And now, along with so much else in the Kotlin community when built with Spring Boot, it works nicely with Spring Native. We hope you’ll check it out! There are so many opportunities here, people, all we have to do is embrace them!
And, there’s a ton to get to in this week’s roundup so let’s dive right in!
- A Bootiful Podcast: Azure Developer Advocate Rory Preddy on Spring, Java, Azure Spring Cloud and more
- Big news: we are looking for someone to join the Spring team to work on Spring Native, @GraalVM and @SpringFramework / @SpringBoot native support. Remote work possible.
- Blog: Writing a Controller for Pod Labels
- I love this new Spring HATEOS Siren release!
- In which I talk about Spring, the JVM and things: “being happy helps everything else work better.” — Josh Long - DEV Community
- Say hello to Microsoft Build of #OpenJDK! New Long-Term Support distribution of @OpenJDK for your @Java workloads from Microsoft…
- Spring Boot loves Tanzu Observability with Madhura Bhave & Stéphane Nicoll | VMware Tanzu Developer Center
- Spring Data 2021.0.2 and 2020.0.10 released
- Spring Security 5.5.1, 5.4.7, 5.3.10 and 5.2.11 released
- Spring Tools 4.11.0 released
- The SpringHow blog has a nice post on using the startup Actuator endpoint in Spring Boot
- The JVM ecosystem report, by Snyk, is out with all the usual tidbits (Spring and Spring Boot continue to dominate the market, for one..). I even wrote a little piece on Reactive Spring for it-check it out!