src/main/resources/application.yml
(完整代码) 989Bserver:
port: 8080
servlet:
context-path: /
spring:
resources:
static-locations: classpath:/templates/,classpath:/static/
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://localhost:3306/dormitory_springboot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
# mvc:
# view:
# prefix: /
# suffix: .jsp
thymeleaf:
prefix: classpath:/templates/ #模版路径
cache: false #关闭thymeleaf缓存
suffix: .html
servlet:
content-type: text/html
encoding: UTF-8
mode: HTML5
# devtools:
# restart:
# enabled: true #设置开启热部署
# additional-paths: src/main/java #重启目录
# pagehelper
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
# params: count=countSql
##整合mybatis
mybatis:
type-aliases-package: com/frankioxo/dormitory/entity
mapper-locations: classpath:/mapper/*.xml
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
