开发遇到的问题
后端海里浑水摸鱼
这个作者很懒,什么都没留下…
展开
-
There are multiple occurrences of ID value ‘’ 解决方案
错误的原因是写配置文件的时候,有两个bean一模一样。仔细检查配置文件是否存在重复定义原创 2020-02-25 10:46:33 · 2878 阅读 · 0 评论 -
Consider renaming one of the beans or enabling overriding by setting spring.xxx 解决方法
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=trueDisconnected from the target VM, address: '127.0.0.1:55832', transport: 'socket...原创 2019-09-21 14:30:57 · 2270 阅读 · 2 评论 -
IDEA 编译项目时报:java.lang.OutOfMemoryError:GC overhead limit exceeded
1.问题简述在Intellij IDEA下编译Java项目,报错:java.lang.OutOfMemoryError: com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileObject@....(此处忽略) GC overhead limit exceeded2.问题分析错误是发生在编译阶段,而不是运行阶段。通过查询相关资...转载 2019-08-17 09:30:58 · 5944 阅读 · 5 评论 -
Invalid bound statement (not found) 或 Mapped Statements collection does not contain value for xxx
问题出现在多数据源开发环境下,Mapped Statements collection does not contain value for xxx相关文章都看过,并不是以下原因造成1.mybatis的映射文件的命令空间与接口的全限定名不一致;2有可能mybatis的映射文件名字与接口的类名字不一致;3.还有一种情况就是接口声明的方法在映射文件里面没有。4.mapper包中的map...原创 2019-08-10 16:41:11 · 202 阅读 · 0 评论 -
You are not allowed to push code to protected branches on this project. 错误
git命令推送remote: GitLab: You are not allowed to push code to protected branches on this project.,组里的小伙伴建的远程gitlab,一直被拒绝,我以为是我的问题,查了半天,他分支设了保护,才推送不上去,记得在保护分支上把开发者推送勾上...原创 2019-02-26 16:48:35 · 2239 阅读 · 0 评论 -
Invalid bound statement (not found): com.xxx.xxx.mapper.xxx
开发工具:IDEA问题现象:访问接口时Dao调用报错找不到mappermapper和entity是逆向工程生成的 访问报这个错误。 Invalid bound statement (not found): com.xxx.repository.mapper.SchoolInfoMapper.countByExample 解决方法:<build> <...原创 2019-01-03 10:38:27 · 5600 阅读 · 0 评论 -
Ambiguous mapping. Cannot map 'xxxController' method 问题
编码的时候偷懒,复制controller层上一段的代码忘记改Controller注解的RequestMapping,这个报错说某个RequestMapping有歧义,模糊不清,基本就是说有重复的RequestMapping了,这是检查下controller层的代码看看是否有重复的RequestMapping注解...原创 2019-01-09 15:09:12 · 20526 阅读 · 4 评论 -
关于maven项目多模块的打包问题的血泪经历(必看)
最近公司使用springboot开发项目,使用的构建工具是maven,项目分了很多模块,并且模块之间还存在一定的依赖,比如说一个项目common是提供各项目通用的工具类,公共的类等例子:项目root,有module common,front,mall等其中front 和mall都依赖于common,将来需要上线部署的也是front和mall项目,所以两个项目是要进行打包,也就是这个打包操作...转载 2019-01-11 10:32:54 · 3301 阅读 · 2 评论