Consider replacing Spring XML configuration with JavaConfig
Using Spring XML configuration is so 2000’s the time has come to push the XML away and look at JavaConfig.
Here is the main code to my sample project
You can see from this code that the ApplicationContext is mapped to a HelloWorldConfig.class file its not using a XML file. Below is the code to the HelloWorldConfig.class.
You can see how easy it is to use JavaConfig and Not XML..
You can download the source code to this at my github project.
Now that’s it. have fun with Spring JavaConfig.
Down and Run Project
If you would like to download the project from GitHub and run it just follow the following commands:
LIFE IS SO EASY WORKING WITH GIT, MAVEN, SPRING….
If you have any questions or comments please email me at email@example.com