728x90
Mysql
XML
<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/mydb?characterEncoding=EUCKR" />
<property name="username" value="abcd" />
<property name="password" value="pppw" />
</bean>
Oracle
XML
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<property name="url" value="jdbc:oracle:thin:@localhost:1521:orcl />
<property name="username" value="abcd" />
<property name="password" value="pppw" />
</bean>
'Back-end > Spring&SpringBoot' 카테고리의 다른 글
아직도 if...else... data 검증을 하는 당신에게! (0) | 2022.12.08 |
---|---|
Request 객체속성 분석 (0) | 2022.12.07 |
m1 silicon tomcat 경로 (0) | 2022.12.07 |
NullPointException 방지 팁 (0) | 2022.12.07 |
RestController 와 Controller 대하여 아는것 만큼 이빨까보자 (0) | 2022.12.07 |