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…
Favourite tutorials for developers
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…
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…
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,…
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, 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…
JUnit, a popular unit test framework in Java. In this tutorials, all examples are tested with JUnit 4.12 1. JUnit 4.x Examples Maven + JUnit + Hamcrest example Gradle +…
In this article, we will show you how to develop a Spring Boot web application, using Thymeleaf view, embedded Tomcat and package it as an executable JAR file. Technologies used…
Spring Boot @ConfigurationProperties is letting developer maps the entire .properties and yml file into an object easily. Normally, we use the @Value to inject the .properties value one by one,…
In this article, we will show you how to test the Spring Boot REST application. Normally, we use the MockMvc or TestRestTemplate for the integration test. Technologies used :Spring Boot…