Spring Boot Secrets, @JsonTest & SpringOne Tour is back!

Happy Monday friends! In last week's newsletter, I told you how excited I was to “Spring Forward” and move our clocks 1 hr ahead. It’s getting warmer here in Ohio and staying light out longer which I absolutely love. I was excited to read last week that the US Senate approved a bill that would make daylight savings permanent. It is now headed to the desk of the President where It should be signed and we can all be done with this nonsense.

In today’s edition of the newsletter, I want to tell you about 2 YouTube videos I released last week and the upcoming SpringOne Tour.

Spring Boot Secret Properties

In this tutorial, you will learn how to use Spring Boot secret properties in your next application. When you define your own configuration properties you need to find a way to set secret properties. You can do this through command-line arguments or environment variables, but I often forget that they are there.

Spring Boot 2.4 gave us the ability to import additional configuration files. In this demo, you will set the secret values in a file called secret.properties and ignore it from Git, so it doesn't get checked in. To wrap this up I will show you how to deploy this project to Heroku and override those secret properties using config vars.

Spring Boot @JsonTest Annotation

I think if we are being honest most of us don’t write enough tests. We can all agree that they are useful but can’t seem to find the time for them. In Spring we have slice tests which speed up our tests by only loading a “slice” of the application context.

In this video, you will learn all about the Spring Boot @JsonTest Annotation. This annotation allows you to write a slice test for testing your object's serialization and deserialization. In the past, I might have just tested this through the web layer manually but this gives you a test that can be verified through CI/CD that everything is working as expected.

SpringOne Tour

We are so happy to announce that the SpringOne Tour is back, in person, and coming to a city near you. Our first stop of the tour will happen on April 26-27 in Chicago. I just finished booking my first trip through VMware and I couldn’t be more excited to connect with the Java & Spring community.

I am presenting on Getting Started with Spring for GraphQL. If you want to learn the basics of GraphQL and how (and more importantly when) to use it in your next Spring application you should check out my session.

spring-one-tour.png

Around the Web

đź“ť Articles

🎬 Videos

🎙 Podcasts

đź’» Projects

👨🏼‍💻 Conferences

Until Next Week

Thanks for sitting down and sharing a cup of coffee with me my friend. I hope you enjoyed this installment of Coffee & Code and I will see you next Monday morning. If you have any links you would like me to include please contact me and I might add them to a future newsletter. I hope you have a great week and as always friends...

Happy Coding
Dan Vega
danvega@gmail.com
https://www.danvega.dev