创立 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 所须要的依赖