摘要:
1.在set方法上加@Autowired 2.在set方法上加@Resource 这样子就可以拿到dao了 阅读全文
随笔档案-2019年09月
为微服务项目设置统一访问路径
2019-09-25 15:03 by hikoukay, 1178 阅读, 收藏, 编辑
摘要:
server.servlet.context-path=/ecsb-apiinterface这样写即可 阅读全文
解决Invalid bound statement (not found)的异常
2019-09-25 15:01 by hikoukay, 583 阅读, 收藏, 编辑
摘要:
今天在搭建框架的时候,报了一个Invalid bound statement (not found)的异常 经过分析,得出原因: 我的mybatis相关的dao和mapper.xml是通过逆向工程生成的,生成的命名都是Mapper结尾,比如UserMapper.java,UserMapper.xml 阅读全文
springboot available: expected at least 1 bean which qualifies as autowire candidate奇葩问题
2019-09-24 14:01 by hikoukay, 21386 阅读, 收藏, 编辑
摘要:
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Er 阅读全文