报错如下
排查其他可能:
在使用PageHelper插件时,分页方法通常应该在执行SQL查询之前调用
sql没有涉及参数传递
原因:sql行尾注释使用–,删除行尾注释后顺利执行
//之前
<select id="getClassList" resultType="com.example.vo.identifyConfig.DccClassVO">
SELECT id AS id, -- 类别ID
name AS name, -- 类别名称
sources AS sources-- 来源(内置或自定义)
FROM xf_dcc_class -- 分类类别表
</select>
//删除行尾注释
<select id="getClassList" resultType="com.example.vo.identifyConfig.DccClassVO">
SELECT id AS id,
name AS name,
sources AS sources
FROM xf_dcc_class
</select>