Open yupeishan opened 6 months ago
以下为mybatis执行的语句
<update id="updateBatch">
<foreach collection="list" item="item" separator=";">
update sys_dict_data
<trim prefix="SET" suffixOverrides=",">
<if test="item.dictLabel != null and item.dictLabel != ''">dict_label = #{item.dictLabel},</if>
<if test="item.dictValue != null and item.dictValue != ''">dict_value = #{item.dictValue},</if>
<if test="item.dictType != null and item.dictType != ''">dict_type = #{item.dictType},</if>
<if test="item.dictSort != null and item.dictSort != ''">dict_sort = #{item.dictSort},</if>
<if test="item.status != null and item.status != ''">status = #{item.status},</if>
</trim>
where dict_code = #{item.dictCode}
</foreach>
</update>
另外,配置文件中我只配置了master数据源,其他数据源通过JDBC的方式在启动时进行加载
源头应该是DsConfigUtil的getSetterMethods,只获取了当前类的set get方法,没有读取到父类的get set
Enviroment
JDK Version(required): 1.8
SpringBoot Version(required): 2.5
dynamic-datasource-spring-boot-starter Version(required): 4.2
druid Version(optional): 1.2.16
Describe what happened
您好,请问wall过滤器中如何允许多重语句的执行,也就是multi-statement-allow 我试过在spring.datasource.druid.filter.wall下面配置,或者在spring.datasource.dynamic.druid.wall下面配置,以及都进行配置,均不起作用,执行多重语句时仍然出现报错,
Cause: java.sql.SQLException: sql injection violation, dbType mysql, druid-version 1.2.16, multi-statement not allow
jdbc连接中也配置了allowMultiQueries=trueyml