-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/#11/applicationyml 파일 수정 환경 변수 설정 #16
The head ref may contain hidden characters: "chore/#11/applicationyml-\uD30C\uC77C-\uC218\uC815-\uD658\uACBD-\uBCC0\uC218-\uC124\uC815"
Changes from 4 commits
e375c02
b51007c
a6b5821
886193d
424b118
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,93 @@ | ||
spring: | ||
profiles: | ||
active: ${SPRING_PROFILES_ACTIVE:dev} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이렇게 나누는거 좋은데여??? |
||
group: | ||
"local": "localRDB, localMongoDB, localJPA, localPort, localSecret, web-mvc" | ||
"dev": "devRDB, devMongoDB, devPort, devJPA, devSecret, web-mvc" | ||
"prod": "devRDB, devMongoDB, devPort, prodJPA, devSecret, web-mvc" | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: "devPort" | ||
|
||
server: | ||
port: 8080 | ||
|
||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: "devRDB" | ||
|
||
datasource: | ||
url: ${DATASOURCE_URL_LOCAL} | ||
url: ${DATASOURCE_URL} | ||
username: ${DATASOURCE_USERNAME} | ||
password: ${DATASOURCE_PASSWORD} | ||
driver-class-name: ${DATASOURCE_DRIVER} | ||
driver-class-name: jdbc:mysql://com.mysql.cj.jdbc.Driver | ||
logging: | ||
level: | ||
org.hibernate.sql: debug | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: "devMongoDB" | ||
data: | ||
mongodb: | ||
uri: mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@${MONGO_HOST}:${MONGO_PORT}/${MONGO_DB} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 몽고 db 좋은데여?? |
||
|
||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: "devJPA" | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: create # create : 존재하는 table을 전부 drop했다가 다시 생성 -> 테스트용 | ||
ddl-auto: validate | ||
|
||
properties: | ||
hibernate: | ||
format_sql: true | ||
show_sql: true | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: "prodJPA" | ||
|
||
jpa: | ||
hibernate: | ||
ddl-auto: none | ||
properties: | ||
hibernate: | ||
show_sql: false | ||
--- | ||
spring: | ||
config: | ||
activate: | ||
on-profile: "devSecret" | ||
|
||
secret: | ||
jwt-login-secret-key: ${JWT_LOGIN_SECRET_KEY} | ||
jwt-user-space-secret-key: ${JWT_USER_SPACE_SECRET_KEY} | ||
jwt-expired-in: ${JWT_EXPIRED_IN} | ||
jwt-secret-key: ${JWT_SECRET_KEY} | ||
jwt-login-secret-key: ${JWT_SECRET_KEY_LOGIN} | ||
jwt-user-secret-key: ${JWT_SECRET_KEY_USER} | ||
jwt-expired-in: ${JWT_EXPIRED_IN:3600000} | ||
--- | ||
|
||
spring: | ||
config: | ||
activate: | ||
on-profile: "web-mvc" | ||
|
||
mvc: | ||
throw-exception-if-no-handler-found: true | ||
|
||
web: | ||
resources: | ||
add-mappings: false | ||
|
||
messages: | ||
basename: errors | ||
|
||
|
||
logging: | ||
level: | ||
org.hibernate.sql: debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p2: mongoDB 관련 의존성은 제 브랜치에서 추가하겠습니닷