Skip to content

Commit

Permalink
#4 REST API 개발환경 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwisx committed Dec 10, 2021
1 parent f6f75e2 commit 1e70aae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/resources/config/context-datasource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
<!-- DataSource 설정 -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${db.driver}"/>
<property name="url" value="${db.url}" />
<property name="url" value="${db.url}"/>
<property name="username" value="${db.username}"/>
<property name="password" value="#{dataSourceCryptoEnvConfigService.getPassword()}"/>
<property name="validationQuery" value="SELECT 1 FROM dual"/>
<property name="testWhileIdle" value="true"/>
<property name="timeBetweenEvictionRunsMillis" value="60000"/>
<property name="defaultAutoCommit" value="false"/>
<property name="poolPreparedStatements" value="true"/>
<property name="poolPreparedStatements" value="true"/>
</bean>

</beans>
2 changes: 1 addition & 1 deletion src/main/resources/property/dev-config.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## MariaDB 설정
#db.driver=org.mariadb.jdbc.Driver (운영)
db.driver=net.sf.log4jdbc.sql.jdbcapi.DriverSpy
db.url=jdbc:log4jdbc:mariadb://20.194.23.75:4406/infection?serverTimezone=UTC&autoReconnect=true
db.url=jdbc:log4jdbc:mariadb://210.116.119.130:3306/infection?serverTimezone=UTC&autoReconnect=true
db.username=infection
db.password=ixzHKBlFuBJ0i%2FbZqhIBmw%3D%3D

Expand Down

0 comments on commit 1e70aae

Please sign in to comment.