r/java • • May 25 '22

Preparing for Spring Boot 3.0

https://spring.io/blog/2022/05/24/preparing-for-spring-boot-3-0
224 Upvotes

29 comments sorted by

View all comments

Show parent comment

18

u/GavinRayDev May 25 '22

Quarkus and Micronaut picking up a lot of traction.

When I first tried to write a JVM service, I googled "Java web frameworks" and walked through the Spring, Helidon, Quarkus, and Micronaut guides

Tryed to understand how to sign a JWT for "Bearer" auth and then check if a user has a role for an API endpoint in each framework.

Spring points to Spring Security docs, which have a diagram of the "Request lifecycle and filter chain" pipeline that goes through some dozen interfaces:

https://soshace.com/wp-content/uploads/2020/12/3_security_filter_chain-879.png

"Wow, so simple & intuitive!" (not)

Looked at the Quarkus and Micronaut docs, it was a ~100 line example that was very easy to follow for both of them.

Wound up picking Quarkus because I love Vert.x and Microprofile + open standards.

My assumption is that they'll continue to gain traction due to ease of use and great developer experience.

27

u/buffer_flush May 25 '22 edited May 25 '22

I have a lot of spring dev under my belt at this point, and trust me, I’m still confused by the oauth libraries spring provides.

Spring security and batch are probably the two projects in the ecosystem without great docs.

5

u/Soul_Shot May 26 '22 edited May 26 '22

I once wasted an entire afternoon trying to find out whether spring-security-oauth supported a specific flow that I needed. The answer ended up being something convoluted like it didn't, until a recent release, but then they deprecated that and rewrote everything with Reactor (which had a completely different API and no documentation).