-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeans.xml
More file actions
19 lines (16 loc) · 996 Bytes
/
Copy pathBeans.xml
File metadata and controls
19 lines (16 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd ">
<!-- Declaration of the dataSource bean and initialization of database connection attributes-->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/db_employees"/>
<property name="username" value="root"/>
<property name="password" value="YOUR_MYSQL_PASSWORD"/>
</bean>
<!-- Declatation of the employeeImpl bean.-->
<bean id="employeeImpl" class="springemployees.dao.EmployeeImplementation">
<property name="dataSource" ref="dataSource" />
</bean>
</beans>