-
Notifications
You must be signed in to change notification settings - Fork 0
/
context.xml
58 lines (46 loc) · 2.14 KB
/
context.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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">
<!-- DB Connector 생성 -->
<bean id="dataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<!-- JDBC Driver 클래스명 설정 -->
<property name="driverClassName" value="com.mysql.cj.jdbc.Driver"/>
<!-- connection URL -->
<property name="url" value="jdbc:mysql://localhost:3306/insurance?verifyServerCertificate=false&serverTimezone=UTC&useSSL=false"/>
<!-- DB 사용자 계정 설정 -->
<property name="username" value="root"/>
<!-- DB 사용자 패스워드 설정 -->
<property name="password" value="9104"/>
</bean>
<!-- DB 처리를 수행하는 JDBC Template 클래스 생성 -->
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="accidentInfoOutDao" class="db.accidentInfoOutDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="consultationDao" class="db.consultationDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="contractConditionDao" class="db.contractConditionDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="customerDao" class="db.customerDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="handlingDao" class="db.handlingDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="insuranceDao" class="db.insuranceDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="insuranceRegistrationDao" class="db.insuranceRegistrationDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
<bean id="propertyDao" class="db.propertyDaoImpl">
<property name="dataSource" ref="dataSource"></property>
</bean>
</beans>