Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Spring
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Paul Clapham
Sheriffs:
paul wheaton
Tim Cooke
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Piet Souris
Bartenders:
Mike London
Forum:
Spring
Spring configuration setup
elias chin
Greenhorn
Posts: 1
posted 2 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello there !
I've been reading
https://www.baeldung.com/project-configuration-with-spring
and I came across this
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> <context:property-placeholder location=" classpath*:*persistence-${envTarget}.properties" /> </beans>
I understand that 'envTarget' holds the type of deployment environment. But what does this part exactly do:
<context:property-placeholder location=" classpath*:*persistence-${envTarget}.properties" />
Himai Minh
Bartender
Posts: 2266
13
posted 2 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Elias,
<context:property-placeholder
location="
classpath*:*persistence-${envTarget}.properties" />
This part says the container will look for a file persistence-${envTarget}.properties on the classpath of the project.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Spring3/JPA2 configuration problem
Steps to configure and use Mysql database with Spring MVC 3.0 without using hibernate.
Problem writing to a Database in Spring MVC, Code 500, Null pointer exception occurred
how to attach entity in JAX-RS service?
problem in spring mvc with jqgrid and JPA
More...