Spring Boot is really amazing for getting started quickly with a new Spring application. By default, your application is contained in a single jar when packaging it. This has some advantages, but what if you want a « classic » layout with a
config folder (for your
logback.xml files) and a
First, we create a simple project using the Spring Initializr. I opted for Java 8 and selected the « Web » dependency. The current Spring Boot version is 1.1.8.
This gave me a zip file with the following structure:
pom.xml src/main/java/.../Application.java src/main/resources/application.properties src/test/java/...
For some fun, I added a simple rest controller:
Running this application and pointing to http://localhost:8080/test/ returns « Hello World » in the browser.
We can now inject a different value into ‘helloValue’ by adding the…
View original post 325 mots de plus