-
Notifications
You must be signed in to change notification settings - Fork 0
/
beans.xml
22 lines (19 loc) · 1.06 KB
/
beans.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd"
default-autowire="constructor">
<context:property-placeholder location="classpath:db.properties"/>
<bean id="datasource" class="org.postgresql.ds.PGSimpleDataSource">
<property name="serverName" value="${db.serverName}"/>
<property name="databaseName" value="${db.databaseName}"/>
<property name="portNumber" value="${db.port}"/>
<property name="user" value="${db.username}"/>
<property name="password" value="${db.password}"/>
</bean>
<bean id="xmlPostgresConnector" class="org.example.xml.XMLPostgresConnector"/>
</beans>