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