Get all updates of Java4s
Follow Us: Email Newsletter

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 Author ♦

Full Stack( Java/J2EE & UI/UX ) Developer and founder of Java4s - Get It Yourself, A popular Java/J2EE Programming Blog. 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.
What would you like to learn today?
Browse these popular technologies
Hibernate spring struts Servlets ajax Log4j jQuery Json Core Java Web Services AngularJs
Most Recent Tutorials
Hibernate_Logo Hibernate Recent Posts Spring_Logo Spring Recent Posts Struts_Logo Struts Recent Posts
Useful LinksCurrent & UpComing Tutorials
  Web Services [ SOAP ], JSP
Contact | About Us | Privacy Policy | Advertise With Us

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