-
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 -
If you have an application with thousand of beans, you must do unit testing but…Spring testing is boring, belive me. A very complex Spring application usually have a lot of dependency: I had to manage over 3000 beans definitions in a production project right now. Sometimes you want only to test a bit of it, and setting up a complete Spring Context will drive you crazy. To avoid losing mind, my suggestion is to …cheat. Let’see how.
Read More -
Inversion of Control (IoC) is a very good idea.
But as the clever Joel Spolsky noted, sometimes you need to be a super-natural hero to use it:
… I try not to be judgemental (HAHA!), but I think that people who use IoC containers are (A) very smart and (B) lacking in empathy for people who aren't as smart as they are. Everything makes perfect sense to them, so they have trouble understanding that many ordinary programmers will find the concepts confusing. It's the curse of knowledge. The people who understand IoC containers have trouble believing that there are people who don't understand it. …
I have trouble using Spring in at least two projects. On the third, it was a disaster, because a single software-architect-guy keeps passing around the Spring context factory as method parameter, getting beans from it!
Read More -
April 0.2 Application Performance Framework
Apr 15, 2009 · 3 min read ·
April (Application Performance Framework) is a super-light application framework based on Spring, featuring:
- An Aspect Oriennted Programing Performance Monitor, which try to increase performance on the fly
- A super-light XML-RPC communication framework
April first commitment is “be lite, be pluggable” and do not re-invent the wheel. I am happy to describe here how it works the Beta 0.2, called “Fat Cat” by friends.
Read More -
Nei precedenti articoli abbiamo visto come creare un applicazione Java agile, evitando il blasone delle specifiche J2EE. Dopo aver valutato (scartandola) una soluzione 2-tier molto simile a quelle fattibili in PHP, ci siamo focalizzati su una soluzione basata su Spring.
Come test, abbiamo sviluppato a Gioorgi.com una applicazione didattica che abbiamo chiamato “April”.
Read More