Apply log4jdbc

This commit is contained in:
hou27
2022-06-23 22:38:09 +09:00
parent 24bebed0f4
commit b7c9fe646d
2 changed files with 6 additions and 4 deletions

View File

@@ -31,8 +31,8 @@ public AuthenticationManager authenticationManager(AuthenticationConfiguration a
# Profile
Set ```application.yml``` to use ```.dev.env``` file
```
```yaml
spring:
config:
import: optional:file:.dev.env[.properties]
```
```

View File

@@ -5,8 +5,10 @@ spring:
import: optional:file:.dev.env[.properties]
# Database
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/${DB_NAME}
# driver-class-name: org.postgresql.Driver
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy # log4jdbc 사용을 위한 driver
# url: jdbc:postgresql://localhost:5432/${DB_NAME}
url: jdbc:log4jdbc:postgresql://localhost:5432/${DB_NAME} # log4jdbc 사용을 위한 'log4jdbc:' 추가
username: postgres
password: ${DB_PW}
# jpa properties