Spring profiles with Maven
How to set Spring active profiles with maven profiles? In this example we will setup configuration for Spring Boot profile activated by Maven.
How to set Spring active profiles with maven profiles? In this example we will setup configuration for Spring Boot profile activated by Maven.
Today we will learn how to configure PostgreSQL with docker for Spring Boot application. At the end of this article you should have Spring Boot application running on Tomcat server connected via JNDI to PostgreSQL data source.
Static utility classes are common in libraries and in user code. For example Java Math for basic mathematical calculations or DateUtils to operate on Date/LocalDate objects. It’s not always wrong to create and use them but sometimes using utility methods are considered code smell. I’ll try to explain when and why use or not to …
Java mind map is useful tool when you want to learn Java from scratch. Or if you are already experienced developer and you want to refresh your knowledge. Below you see a full Java mind map with general topics. It is based on Oracle documentation and some interview questions. I decided to share this mind …
In last few years “microservices” term was very popular and almost everyone wanted to migrate their systems to such architecture. But what’s wrong with monolithic applications you may ask. Actually nothing. Monolith apps are as good as microservice apps. It’s not the case what is better. I don’t want to discuss what are the benefits …
In this article I will present simple yet effective best practice for making code more readable by changing method arguments. It’s a good practice to only pass values, that the method requires, everything else ruins readability and causes tests to be more complicated. Following this simple rule we will check how it really affects code …
In this article we will quickly install Oracle Java JDK 10 on Ubuntu 17.10 machine from terminal. There are multiple methods of doing it, some more easy and some more sophisticated, like using bash scripts. It always depends on use case, but we will do it as simple as it can be. For this moment …