创立springBoot文件的 application.yml的配置在编写application时肯定要留神缩进~~~~
#server设置
server:
port: 8080
#spring 资源整合
spring:
datasource:
url: jdbc:mysql:///dbsys?serverTimezone=GMT%2B8&characterEncoding=utf8
username: root
password: root
thymeleaf:
cache: false
prefix: classpath:/templates/pages/
suffix: .html
#mybatis
mybatis:
mapper-locations:
- classpath:/mapper/*/*.xml
#lOG
logging:
level:
com.cy: debug
springBoot所须要的依赖
发表回复