spring:
datasource:
url: jdbc:mysql://127.0.0.1:13306/###?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&allowMultiQueries=true
username: mysql
password: root
在jdbc的url末尾添加allowMultiQueries=true
即可。
spring:
datasource:
url: jdbc:mysql://127.0.0.1:13306/###?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2b8&allowMultiQueries=true
username: mysql
password: root
在jdbc的url末尾添加allowMultiQueries=true
即可。