Spring Resourcebundle Example

Spring » on Feb 12, 2012 { 4 Comments } By Sivateja

Let us see how to use Resourcebundle in spring jdbc [ Dynamically load the values for property placeholders in spring configuration XML ]

Files Required

  • spconfig.xml

Directory Structure


jdbc.className = oracle.jdbc.driver.OracleDriver
jdbc.url = jdbc:oracle:thin:@localhost:1521:XE
jdbc.user = system
jdbc.pass = admin



You Might Also Like

  ::. About the Author .::

- Full Stack Java/J2EE & UI Web Developer
Founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog, Love Java and UI frameworks.
You can sign-up for the Email Newsletter for your daily dose of Java tutorials.


4 Responses to “Spring Resourcebundle Example”
  1. Boopathy says:

    Your Explanation is Too Good yaar !!!

  2. Satish says:

    Excellent Explanation. Complex technology in simple words .. keep up the good job …

  3. shaheed jahagirdar says:

    superb explanation….. i didn’t find any alternate for this site till now…

  4. Sangram says:

    By configuring below code in spconfig.xml, the properties file can be readable.

    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="locations" value="classpath:com/foo/"/>


By posting your answer, you agree to our comments policy.
Most Recent Posts from Top Categories
Hibernate Spring Struts
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2018 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.