application.yml配置
spring:
thymeleaf:
cache: false
prefix: classpath:/static/
suffix: .html
datasource:
url: jdbc:mysql://localhost:3306/mmall
?useUnicode=true&useSSL=false
&characterEncoding=UTF-8&serverTimezone=GMT
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
jdbc的url的?后面加useUnicode=true&useSSL=false &characterEncoding=UTF-8&serverTimezone=GMT
一般运行时候数据库不会有问题