Basic configuration of application.properties of SpringBoot

Basic configuration of SSM and thymeleaf


server.port=80
#jdbc连接配置
spring.datasource.url=jdbc:mysql://localhost:3306/fresh?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

#thymeleaf模板配置前后缀

spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html

logging.level.com.dy.springboot.server.mapper=debug
#扫描mybatis的mapper
mybatis.type-aliases-package=com.zy.blog.dao
#mybatis的mapper.xml文件位置
mybatis.mapper-locations=classpath:mybatis/*.xml
//开启驼峰标识
mybatis.configuration.map-underscore-to-camel-case=true
mybatis.configuration.log-impl= org.apache.ibatis.logging.stdout.StdOutImpl

Guess you like

Origin blog.csdn.net/qq_41844287/article/details/93858749
Recommended