我在idea里执行命令mvn clean package来对一个springboot项目打包,然后出现了类重复的问题:
并且映射文件mapper被修改,原先我的映射文件里是有主键自增
useGeneratedKeys="true" keyProperty="id"
在打包后,这段语句没有了。想问下这是什么情况?
检查一下包的版本对不对,再就是检查远程maven repository地址对不对,最后可以删除本地的maven仓库jar,重新package
2.1m questions
2.1m answers
60 comments
56.8k users