-
Sometimes you need to fix a production defect. To do it, you need to mirror a specific set of data, and do a test to proof the bug and then fix it.
Luckily, SpringBoot provide the @Sql annotation to easily "pump" data.
Read More -
With new JDK, when you compile a spring-boot application you get a big jar which cannot be included as utility jar anymore.
The reason are a lot but, simply put, the new packaging system introduced with JDK9 require a strong separation.
Read More -
Today I have an hard time using the @Profile directive for enable feature toggle on Spring, so I decided to write a small guide on it.
Introduction
Feature toggle is a way to write your code to be able to 'turn' on/off specific modules of your (micro) service. Because Spring Autowiring can 'discover' the right service for the right need, you can easily introduce feature toggle in an Inversion of Control engine like Spring.
I am not a super fan of feature toggle, but it helped me on more than one project. Also sometimes on production delivery you have some legal constraints (like enable a service not before a specifica date) and so a dynamic, parametrized run become a must.
Read More -
There is very handy feature of SpringBoot which is called Dev tools. Dev tools enable hot reloading of spring-boot- based application every time your IDE recompile the code.
Because Spring Boot is often used with Microservices in mind, the reload is quick, and quite seamless.
Read More