This is a sample Spring Project to show how to use JavaConfig and not XML files. This example also will show how to use @PropertySource for reading properties and using the Environment Object to add properties to your objects.
checkout the project from github.
mvn packge
cd target
java -jar HelloSpringJavaBasedJavaConfig.jar
Thats it and you should see the following line on the console:
I love New York.
I am in Staten Island, New York
This Project is using Java, Spring, Maven, jUnit, Log4J and Gitub.
If you have any questions please email me at john@johnathanmarksmith.com