Spring external .properties file

Before we proceed, be sure the check out the spring-cloud-config. Depending on your use case, this might be what you want , Spring Cloud Config. Lets say that we have following .properties files in our project: application.propertiesapplication-dev.propertiesapplication-prod.propertiescustom.properties Spring will use these files, if we do not tell it otherwise. We can override the location of … Continue reading Spring external .properties file

Run SpringBoot application in Docker image

This is a short recipe on how to run your spring boot application within a docker image. The idea comes from John Thompson's docker for java developer course, so be sure to check it out here https://www.udemy.com/docker-for-java-developers/. What do we want to accomplish? Create a fat (uber) jar of our applicationCreate a Docker file (a … Continue reading Run SpringBoot application in Docker image

Spring Boot?

While we can talk a lot about Spring Boot's opinionated views and it's auto-configuration classes.... https://spring.io/projects/spring-boot "A picture is worth a thousand words." I found pretty much the best explanation there is, purely by accident. I am stealing the image and putting the source link below 😉 https://medium.com/@sampathsl/exception-handling-for-rest-api-with-spring-boot-c5d5ba928f5b