spring boot 关于application的yml的一些配置

1,【Spring Boot】Spring Boot修改静态资源后立即生效

spring:
  profiles:
    active: dev
  #数据库配置
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3306/mytable?useSSL=true&serverTimezone=UTC
    username: root
    password: root

  #静态资源立即生效
  thymeleaf:
    cache: false

2,mybatis 配置

mybatis:
  configuration:
    map-underscore-to-camel-case: true
  mapper-locations: mybatis/*Mapper.xml
  typeAliasesPackage: com.ssms.domain


猜你喜欢

转载自blog.csdn.net/weixin_37909363/article/details/80802849