-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from everymeals/chore/project-setting
[Chore/project setting] #1 dependency 추가 및 yml파일 분리
- Loading branch information
Showing
5 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,5 @@ out/ | |
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#spring: | ||
# application: | ||
# name: EveryMeal-server-test | ||
# config: | ||
# activate: | ||
# on-profile: test | ||
# datasource: | ||
# driver-class-name: org.h2.Driver | ||
# url: jdbc:h2:mem:~/test # h2 support in-memory-db | ||
# username: sa | ||
# password: | ||
# | ||
# h2: | ||
# console: | ||
# enabled: true | ||
# path: /h2-console | ||
# sql: | ||
# init: | ||
# mode: always | ||
# schema-locations: classpath*:db/schema.sql | ||
# data-locations: classpath*:db/data.sql | ||
# jpa: | ||
# properties: | ||
# hibernate: | ||
# dialect: org.hibernate.dialect.H2Dialect | ||
# show_sql: false | ||
# format_sql: false | ||
# hbm2ddl: | ||
# auto: none | ||
# showSql: false | ||
# database-platform: org.hibernate.dialect.H2Dialect | ||
# | ||
#swagger: | ||
# enabled: true | ||
# | ||
#log: | ||
# config: | ||
# path: ./logs | ||
# filename: app-dev | ||
# maxHistory: 1 # 1일 | ||
# totalSizeCap: 10MB # 로그 파일 사이즈 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,67 @@ | ||
server: | ||
port: 80 | ||
error: | ||
path: /error | ||
|
||
spring: | ||
application: | ||
name: EveryMeal-server-main | ||
# datasource: | ||
# driver-class-name: com.mysql.cj.jdbc.Driver | ||
servlet: | ||
multipart: | ||
enabled: true | ||
max-file-size: 100MB | ||
max-request-size: 100MB | ||
# jpa: | ||
# properties: | ||
# hibernate: | ||
# dialect: org.hibernate.dialect.MySQLDialect | ||
# show_sql: false | ||
# format_sql: false | ||
# use_sql_comments: true | ||
# id: | ||
# new_generator_mappings: true | ||
# naming: #네이밍 카멜케이스 컬럼명 적용 | ||
# implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl | ||
# physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl | ||
|
||
management: | ||
endpoint: | ||
metrics: | ||
enabled: true | ||
prometheus: | ||
enabled: true | ||
|
||
endpoints: | ||
web: | ||
exposure: | ||
include: health, info, metrics, prometheus | ||
|
||
metrics: | ||
tags: | ||
application: ${spring.application.name} | ||
|
||
springdoc: | ||
api-docs: | ||
groups-order: DESC | ||
enabled: true | ||
swagger-ui: | ||
path: /swagger-ui.html | ||
groups-order: DESC | ||
path: /api-docs | ||
|
||
--- | ||
# Local | ||
spring: | ||
config: | ||
activate: | ||
on-profile: local | ||
import: application-local.yml | ||
--- | ||
# PROD | ||
spring: | ||
config: | ||
activate: | ||
on-profile: prod | ||
import: application-prod.yml |