springboot全局配置文件

    xiaoxiao2022-07-07  188

    #thymeleaf start spring.thymeleaf.prefix=classpath:/templates/ spring.thymeleaf.suffix=.html spring.thymeleaf.mode=HTML5 spring.thymeleaf.encoding=UTF-8 #开发时关闭缓存,不然没法看到实时页面 spring.thymeleaf.cache=false spring.thymeleaf.enabled=true spring.thymeleaf.servlet.content-type=text/html #thymeleaf end # mybatis start mybatis.type-aliases-package=com.qst.domain.model mybatis.type-handlers-package=com.qst.typehandler mybatis.configuration.map-underscore-to-camel-case=true mybatis.configuration.default-fetch-size=100 mybatis.configuration.default-statement-timeout=3000 mybatis.mapper-locations=classpath:com/qst/demo/dao/*.xml #mybatis end #druid start spring.datasource.dbcp2.driver=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/miaosha?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC spring.datasource.username=root spring.datasource.password=123456 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource #druid end
    最新回复(0)