Skip to content

Commit

Permalink
feat: dev 프로파일 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
DWL21 committed Feb 12, 2025
1 parent e1be44f commit 9ad78da
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
server:
port: 9000

spring:
config:
activate:
on-profile: local
import:
- data.yml
datasource:
url: jdbc:h2:mem:testdb;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
driver-class-name: org.h2.Driver
username: sa
password:
jpa:
hibernate:
ddl-auto: create-drop
h2:
console:
enabled: true
path: /h2-console
cors:
allowed-origins: [ http://localhost:3000 ]
cloud:
openfeign:
client:
config:
default:
connectTimeout: 5000
loggerLevel: full
defaultRequestHeaders:
Authorization: Bearer accessToken
dismiss404: false

springdoc:
packages-to-scan: com.yourssu.soongpt
default-consumes-media-type: application/json;charset=UTF-8
default-produces-media-type: application/json;charset=UTF-8
swagger-ui:
path: /swagger-ui
disable-swagger-default-url: true
display-request-duration: true
operations-sorter: alpha

slack:
channel-id: "ssongpt-channel-id"
6 changes: 6 additions & 0 deletions src/main/resources/logback-spring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
</springProfile>
<!-- prod -->
<springProfile name="prod">
<root level="INFO">
<appender-ref ref="FILE"/>
</root>
</springProfile>
<!-- dev -->
<springProfile name="dev">
<root level="INFO">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
Expand Down

0 comments on commit 9ad78da

Please sign in to comment.