1

创建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所需要的依赖
image.png


Tony猿
25 声望4 粉丝