关于java:搭建环境-创建springBoot所需的依赖和配置

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

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理