Files
blog-server/src/main/resources/application.yml
2025-11-06 11:09:45 +08:00

59 lines
1.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
server:
port: 8081
jwt:
secret: CkmEXxVBNBsMUo4VNhDcH0YBhA1O4zSkQgSM243YzDY=
issuer: blogAdmin
subject: Interesting
expire: 604800
upload:
dir: c:/uploads
spring:
servlet:
multipart:
max-file-size: 50MB
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/Blog
username: Merlin
password: 123456
jackson:
time-zone: Asia/Shanghai
date-format: yyyy-MM-dd HH:mm:ss
mail:
protocol: smtps
port: 465
default-encoding: utf-8
host: smtp.163.com
username: addsss2580@163.com
password: WDXrkqCJyRTtM7WN
properties:
mail:
smtp:
auth: true
ssl:
enable: false
required: false
protocols: TLSv1.2
connectiontimeout: 10000
timeout: 15000
writetimeout: 10000
debug: true
mybatis-plus:
global-config:
db-config:
table-prefix: "" # 可选:表前缀(没有可以留空)
id-type: auto # 主键策略
configuration:
map-underscore-to-camel-case: false # 禁用驼峰命名自动映射
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 控制台打印 SQL调试用
logging:
level:
org:
springframework:
security: DEBUG