-
Read properties from database
Hi all!
I am very new in Spring's word so I wuold like to ask you to help me.
Given:
I have a property file called config.properties (a simple name=value property file). Now I use to get the properties and values via the application context using PropertyPlaceholderConfigurer:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>WEB-INF/config.properties</value>
</list>
</property>
</bean>
I would like to change it: read the properties from the database instead of the property file. How can I do this?
Create the table in the database, insert some initial values, implement a new class which extends the PropertyPlaceholderConfigurer,...
Thanks for your help!
Similar Threads
-
By edustreet in forum Database
Replies: 1
Last Post: 06-13-2008, 01:12 AM
-
By Christian in forum Enterprise
Replies: 0
Last Post: 02-12-2002, 06:04 AM
-
By Saiful in forum VB Classic
Replies: 8
Last Post: 03-04-2001, 07:28 PM
-
Replies: 3
Last Post: 05-24-2000, 05:26 AM
-
By Richard in forum VB Classic
Replies: 0
Last Post: 03-29-2000, 07:05 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks