最常用的springboot的代码生成器application.properties模板
时间: 2023-07-29 20:05:55 浏览: 54
下面是一个常用的application.properties模板,可以用于springboot的代码生成器:
```
# 数据库连接相关配置
spring.datasource.url=jdbc:mysql://localhost:3306/db_name?useUnicode=true&characterEncoding=utf-8&useSSL=false
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
# Mybatis配置
mybatis.mapper-locations=classpath:mapper/*.xml
mybatis.type-aliases-package=com.example.demo.entity
# JPA配置
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
# Redis配置
spring.redis.host=localhost
spring.redis.port=6379
# 日志配置
logging.level.org.springframework=INFO
logging.level.com.example.demo=DEBUG
```