摘要: 使用 Idea 的时候,自动装配 Mybatis 的 mapper。会一直出现红色波浪线的警告。看着难受。下面提供几种方式 方式一 为 @Autowired 注解设置required = false 方式二 用 @Resource 替换 @Autowired 方式三 在Mapper接口上加上@Rep 阅读全文
posted @ 2019-12-13 15:06 经典鸡翅 阅读(1603) 评论(0) 推荐(0) 编辑