CHAPTER 6
Using Resource Files
So far, you have been using all your data as bean definitions. Of course, there are better ways to accomplish the same. In this chapter, you are going to employ a useful feature from the Spring Framework, using external files as a data resource for your application.
The resource files will not only help to load the data you are using, but they also can be useful when you want to separate some configuration that may depend on the environment you are working on. They can also be useful if you have an application that you want to be shown in a different language base on the user’s browser locale.
Using Resources
Get Introducing Spring Framework: A Primer now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.