You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
|
3 years ago
|
# 应用名称
|
||
|
|
spring.application.name=code4
|
||
|
|
# 应用服务 WEB 访问端口
|
||
|
|
server.port=8080
|
||
|
|
# 定义Spring boot的静态文件地址
|
||
|
|
spring.mvc.static-path-pattern==/**
|
||
|
|
spring.resources.static-locations =classpath:/resources
|
||
|
|
|
||
|
|
# 定义数据库内容
|
||
|
|
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||
|
|
#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/kangb?useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||
|
|
#spring.datasource.name=adiao
|
||
|
|
#spring.datasource.password=adiao
|
||
|
|
|
||
|
|
# mysql 5 驱动不同 com.mysql.jsbc.Driver
|
||
|
|
|
||
|
|
# mysql 8 驱动不同 com.mysql.cj.jsbc.Driver、需要增加时区的配置
|
||
|
|
spring.datasource.username=root
|
||
|
|
spring.datasource.password=adiao007
|
||
|
|
spring.datasource.url=jdbc:mysql://localhost:3306/kangb?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
||
|
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||
|
|
|
||
|
|
# 模版设置
|
||
|
|
spring.thymeleaf.cache=false
|
||
|
|
spring.thymeleaf.prefix=classpath:/templates
|
||
|
|
spring.thymeleaf.suffix=.html
|
||
|
|
|
||
|
|
# mybatis 全局设置
|
||
|
|
#mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
|
mybatis-plus.configuration.call-setters-on-nulls=true
|
||
|
|
mybatis-plus.mapper-locations=classpath:xx/xx/xx/**/mapper/*.xml
|