server: port: 8080 servlet: context-path: /api encoding: charset: UTF-8 enabled: true force: true spring: application: name: pms-backend datasource: url: jdbc:postgresql://39.117.244.52:11132/plm?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul username: postgres password: ph0909!! driver-class-name: org.postgresql.Driver hikari: maximum-pool-size: 10 minimum-idle: 5 connection-timeout: 30000 idle-timeout: 600000 max-lifetime: 1800000 # Profile 설정 profiles: active: dev # HTTP 인코딩 설정 http: encoding: charset: UTF-8 enabled: true force: true # MyBatis 설정 mybatis: mapper-locations: classpath:mybatis/mapper/*.xml type-aliases-package: com.pms.dto configuration: map-underscore-to-camel-case: true default-fetch-size: 100 default-statement-timeout: 30 # SQL 로그 출력을 위한 설정 (콘솔에 직접 출력) log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 로깅 설정 logging: level: com.pms: DEBUG org.springframework.web: DEBUG org.mybatis: DEBUG org.springframework.boot.autoconfigure: INFO # MyBatis SQL 로그를 위한 설정 com.pms.mapper: DEBUG org.apache.ibatis: DEBUG org.springframework.jdbc.core: DEBUG org.springframework.jdbc.core.JdbcTemplate: DEBUG org.springframework.jdbc.core.StatementCreatorUtils: TRACE # SQL 실행 로그 org.mybatis.spring.SqlSessionTemplate: DEBUG org.mybatis.spring.SqlSessionUtils: DEBUG org.springframework.transaction: DEBUG # SQL 파라미터 로그 jdbc.sqlonly: DEBUG jdbc.sqltiming: INFO jdbc.resultsettable: DEBUG pattern: console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n" file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n" charset: console: UTF-8 file: UTF-8 # CORS 설정 cors: allowed-origins: "http://localhost:3000,http://192.168.0.70:5555" allowed-methods: "GET,POST,PUT,DELETE,OPTIONS" allowed-headers: "*" allow-credentials: true --- # 개발 환경 설정 spring: config: activate: on-profile: dev datasource: url: jdbc:postgresql://39.117.244.52:11132/plm?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul username: postgres password: ph0909!! --- # 운영 환경 설정 spring: config: activate: on-profile: prod datasource: url: jdbc:postgresql://39.117.244.52:11132/plm?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul username: postgres password: ph0909!!