Spring Boot – Profile based properties and yaml example
In Spring Boot, it picks .properties or .yaml files in the following sequences : application-{profile}.properties and YAML variants, application.properties and YAML variants. Tested :Spring Boot 2.1.2.RELEASE, Maven 3. This article…
Spring Boot Profiles example
In this article, we will show you how to use @Profile in Spring Boot and also how to test it. Tested with :Spring Boot 2.1.2.RELEASE, Maven 3. In Spring Boot,…
Spring Boot YAML example
In this article, we will show you how to use YAML instead of properties file in Spring Boot. Tested with :Spring Boot 2.1.2.RELEASE, Maven 3, Snakeyaml:jar:1.23 . In short, create…
Spring @Value default value
In this tutorial, we will show you how to set a default value for @Value . To set a default value in Spring expression, use Elvis operator : #{expression?:default value}…
Spring @PropertySource example
In Spring, you can use @PropertySource annotation to externalize your configuration to a properties file. In this tutorial, we will show you how to use @PropertySource to read a properties…
Spring Tutorial
The Spring framework , created by Rod Johnson, is an extremely powerful Inversion of control(IoC) framework to help decouple your project components’ dependencies. In this series of tutorials, it’s provides…
Spring Boot Hello World Example – JSP
A Spring Boot web application example, using embedded Tomcat + JSP template, and package as an executable WAR file. Technologies used : Spring Boot 1.4.2.RELEASE, Spring 4.3.4.RELEASE, Tomcat Embed 8.5.6,…
Spring MVC – How to include JS or CSS files in a JSP page
In this tutorial, we will show you how to include static resources like JavaScript or CSS in a JSP page. Summary steps : 1 - Put static resources like cs,…
Spring MVC Tutorial
Spring MVC, a Java Model-View-Contraller (MVC) web framework, which builds on top of the Spring Inversion of control(IoC) framework. Rewrite and Spring 4 (12/Jun/2015)I’m rewriting the outdated articles and upgrade…