r/SpringBoot • • Nov 27 '23

Comprehensive guide to Spring Boot 3.2 with Java 21, Virtual Threads, Spring Security, PostgreSQL, Flyway, Caching, Micrometer, Opentelemetry, JUnit 5, RabbitMQ, Keycloak Integration, and More!

Hi, after building many APIs for divers startup, I tried to consolidate all my knowledge and experiences into this article. It demonstrates commons features like persistence, error-handling, authentication & authorization, caching, message-brokering, rate-limiting, circuit-breaker, observability, integration testing and more. I hope It can help you get started!

https://medium.com/@jojoooo/exploring-a-base-spring-boot-application-with-java-21-virtual-thread-spring-security-flyway-c0fde13c1eca?source=friends_link&sk=306a3d734f7df4abe8d0a1f9136c6730

50 Upvotes

8 comments sorted by

3

u/PeikkoThaTroll Nov 27 '23

Thanks for a great article!

What made you decide on using TestContainers instead of spring-boot-docker-compose? Just what you are used to or do you see an advantage in TestContainers?

3

u/jojomtx Nov 27 '23

Hi u/PeikkoThaTroll, because I was used to it, no specific reason!

6

u/ArmadaBoliviana Nov 27 '23 edited Nov 27 '23

You have posted this at a perfect time for me. I'm about to migrate my personal SB project over to SB3 and I have lots of opportunities to improve it in many different ways. I have just skimmed the first part of your article but I can already see it will be valuable. Thank you!

One very minor thing - it's slightly unconventional to refer to inanimate objects/ideas as "he/his". We would say "it/its".

1

u/[deleted] Nov 27 '23

Please suggest me some resources to learn all the spring-boot concepts including security, microservices, and many more.

1

u/[deleted] Dec 11 '23

we have roadmap.sh for forexample, it includes lots of resources. You can also add more if you find any missing!!!

1

u/amayas21 Nov 28 '23

Great ! Thanks for sharing

1

u/observability_geek Nov 29 '23

Thank you for sharing, comes in handy:)