src/main/resources/mapper/system/SysUserPostMapper.xml
文件名从 src/main/resources/mybatis/system/SysUserPostMapper.xml 修改 @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ruoyi.project.system.mapper.SysUserPostMapper"> <resultMap type="SysUserPost" id="SysUserPostResult"> <resultMap type="com.ruoyi.project.system.domain.SysUserPost" id="SysUserPostResult"> <result property="userId" column="user_id" /> <result property="postId" column="post_id" /> </resultMap>