摘要: 问题:工作中,出现一个问题。在一个工具类中(非Controller、非Service),@Autowired注解注入Service或者mapper,service, mapper为null? 解决步骤: 借鉴了网上其他大佬的解决办法,记录一下 第一步:工具类上面加@Component注解 第二步: 阅读全文
posted @ 2022-03-17 17:05 逗号Comma 阅读(1192) 评论(0) 推荐(0)