spring boot
chenyuttt
这个作者很懒,什么都没留下…
展开
-
mybatis参数传递踩坑:There is no getter for property named ‘xxx‘ in ‘class java.lang.Integer‘
<!--根据id更新用户信息--> <update id="update" parameterType="com.example.bishe.POJO.User" > update user <set > <if test="age != null" > age = #{age,jdbcType=INTEGER} </if> ..原创 2022-04-29 12:03:30 · 849 阅读 · 0 评论 -
Result Maps collection already contains value for com.example.bishe.mapper.UserMapper.BaseResultMap
在spring boot的application.properties中,配置了mybatis.config-location=classpath:mybatis-config.xml mybatis.mapper-locations=classpath*:mapper/*.xml。这样相当于mapper的配置被配置了两遍。 应把mybatis-config.xml中的mappers部分删除 ...原创 2022-04-17 16:13:11 · 335 阅读 · 0 评论