1、在连接字符串中加入 allowMultiQueries=true 参数
?
如
<property name="driverUrl" value="jdbc:mysql://192.168.1.102:3306/dbname?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true"/>
?
2、xml中加入分号
update device set space=? #{space};
update users set backuptime=NOW() where userid = #{userid};