Files
gc-plan/week4/src/main/resources/application.yml
2026-04-29 23:45:17 +08:00

51 lines
1013 B
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.
spring:
application:
name: week4-student-system
datasource:
url: jdbc:mysql://localhost:3306/week4_student?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: root
password: 1365957941@Wfj
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: none
show-sql: true
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQLDialect
servlet:
multipart:
max-file-size: 2MB
max-request-size: 5MB
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
global-config:
db-config:
id-type: auto
# ORM 选型开关jpa 或 mp第 5 天配置切换练习)
orm:
mode: jpa
# 自定义文件上传路径(头像)
upload:
path: ./uploads
# 简易认证 Token拦截器验证用
auth:
token: week4-secret-token
logging:
level:
com.learn: DEBUG
server:
port: 8080