摘要: 多在mapper接口写@Param注解, 那么,你在mapper.xml alt+/会有提示 为什么不写parameterType也可以运行成功? 因为mybatis能自动识别,但返回值类型不能不写 (idea-mybatis插件也不生成parameterType,刚好,以后推荐不写paramete 阅读全文
posted @ 2020-10-10 20:22 路要一步一步走 阅读(4611) 评论(0) 推荐(0) 编辑
摘要: 1) 使用#{参数}传入会加上单引号,sql语句解析是会加上"", 比如 select * from table where name = #{name} ,传入的name为小李,那么最后打印出来的就是 select * from table where name = ‘小李’,就是会当成字符串来解 阅读全文
posted @ 2020-10-10 20:18 路要一步一步走 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 解决方法:移除工程目录/.mvn/maven-wrapper.properties 文件即可 阅读全文
posted @ 2020-10-10 19:22 路要一步一步走 阅读(866) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_37675827/article/details/77978505 阅读全文
posted @ 2020-10-10 12:15 路要一步一步走 阅读(221) 评论(0) 推荐(0) 编辑