Skip to content

Commit 3bc0b75

Browse files
author
eugenp
committed
perperties work
1 parent 75b533e commit 3bc0b75

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.baeldung.properties.spring;
2+
3+
import org.springframework.context.annotation.Configuration;
4+
import org.springframework.context.annotation.ImportResource;
5+
6+
@Configuration
7+
@ImportResource("classpath:basicConfigForPropertiesTwo.xml")
8+
public class PropertiesWithXmlConfigTwo {
9+
10+
public PropertiesWithXmlConfigTwo() {
11+
super();
12+
}
13+
14+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<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"
3+
xmlns:util="http://www.springframework.org/schema/util"
4+
xsi:schemaLocation="
5+
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
6+
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.1.xsd
7+
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd"
8+
>
9+
10+
<context:property-placeholder location="classpath:foo.properties"/>
11+
12+
</beans>

0 commit comments

Comments
 (0)