51 lines
1013 B
YAML
51 lines
1013 B
YAML
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
|