Spring Conditional Bean Configuration: Load Beans Based on Custom Conditions

In a previous post, I made a small demo on how to load Java beans based on properties defined in a configuration file. While this is a very common scenario, sometimes you might need to create beans based on completely custom conditions. Once again, Spring provides an elegant solution for this: the @Conditional annotation. The… Continue reading

Spring Conditional Bean Configuration: Load Beans Based on Application Properties File

In complex applications, there are times when you will want the Spring dependency injector to create an instance of a class based on a given condition. One common case is to configure the bean definition based on a property defined in the application.properties file. By using this approach you can load custom beans at runtime… Continue reading

How to deploy Spring Boot applications on Tomcat (as WAR)

By default, Spring-Boot applications are packaged as JAR files and they have an embedded container that hosts them. The embedded container allows developers to not have any web server installed in order to run their apps. This is pretty cool and brings many benefits for developers like easier deployment and management. However, customers usually have… Continue reading

Voxxed Days Bucharest 2017

I had the opportunity to attend my first Java developer conference: Voxxed Days Bucharest 2017. I learned a lot of things, I had a great time and I thought it would be a good idea to share my thoughts about this event. What I liked The diversity and relevance of the content. There were many… Continue reading