在使用 MyBatis 时候,IDEA会提示“Could not autowire. No beans of 'XXXMapper' type found.”,还会给 mapper 的类上画上红色的波浪线,其实是因为你忘记给 mapper 加 @Repository 注解了。…
在使用 MyBatis 时候,IDEA会提示“Could not autowire. No beans of 'XXXMapper' type found.”,还会给 mapper 的类上画上红色的波浪线,其实是因为你忘记给 mapper 加 @Repository 注解了。…
讨论
登录后参与讨论
还没有评论,来说第一句吧。