-
Notifications
You must be signed in to change notification settings - Fork 2
ApplicationProperties
Jonghan Sim edited this page May 3, 2023
·
6 revisions
- 메일 기능과 JPA, JWT를 사용하기 위한 기본 세팅입니다.
-
wazard/src/main/resources내부에 작성해주시면 됩니다.
spring:
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
mvc:
path-match:
matching-strategy: ant_path_matcher
datasource:
driver-class-name: {DRIVER_NAME}
url: {DB_URL}
username: {DB_USER_ID}
password: {DB_PWD}
multipart:
max-file-size: 10MB
max-request-size: 10MB
mail: # 메일 전송을 위해 네이버 SMTP서버를 사용하고 있습니다.
host: smtp.naver.com
port: 465
username: {NAVER_ID}
password: {NAVER_PWD}
properties:
mail:
smtp:
enable: true
required: true
auth: true
connectiontimeout: 5000
timeout: 5000
writetimeout: 5000
ssl:
trust: smtp.naver.com
enable: true
jpa:
hibernate:
ddl-auto: {OPTION}
properties:
hibernate:
format_sql: true
database-platform: {DIALECT}
jwt:
header: Authorization
atkKey: {JWT_KEY}
live:
atk: {VALID_TIME}
cloud:
aws:
credentials:
access-key: {IAM_ACCESSKEY} # IAM 계정의 accessKey
secret-key: {IAM_SECRETKEY} # IAM 계정의 secretKey
region:
static: {BUCKET_REGION} # 버킷의 리전
s3:
bucket: {BUCKET_NAME}
stack:
auto: false
logging:
level:
org.hibernate.SQL: debug
root: info