创建项目时需要导入的包
在application.yml 配置文件中配置需要的
spring:
datasource:
url: jdbc:mysql://localhost:3306/数据库名?useSSL=false&serverTimezone=Asia/Shanghai
username: 用户名
password: 密码
jpa:
show-sql: true
hibernate:
ddl-auto: none
#redis 可以不配,默认就是locatihost
redis:
host: localhost
port: 6379
cache:
type: redissp