feat: init commit

This commit is contained in:
merlin
2025-10-16 16:57:27 +08:00
commit 4f84603d82
57 changed files with 2243 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
server:
# port: 8080
port: 8443
ssl:
key-store: classpath:merlin.xin.pfx
key-store-password: 7p7vcfmu
key-store-type: PKCS12
address: 0.0.0.0
jwt:
secret: CkmEXxVBNBsMUo4VNhDcH0YBhA1O4zSkQgSM243YzDY=
issuer: blogAdmin
subject: Interesting
expire: 604800
file:
# image-dir: C:/uploads/images #图片储存目录
# avatar-dir: C:/uploads/avatars # 头像存储目录Windows 环境)
avatar-dir: /home/blog/uploads/avatars # 头像储存目录Linux 环境)
image-dir: /home/blog/uploads/image
spring:
servlet:
multipart:
max-file-size: 50MB
datasource:
url: jdbc:mysql://8.138.214.149:3306/blog
# username: root
# password: 3604162
username: root
password: server2025_xyf_Merlin
driver-class-name: com.mysql.cj.jdbc.Driver
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