MyBatis-Spring + @Configuration - Can't autowire mapper beans

后端 未结 4 1833
感情败类
感情败类 2020-12-24 09:15

I have been trying to create a Spring project that uses MyBatis for the data access layer as a proof of concept for my team. I really want to avoid XML configuration if at a

4条回答
  •  时光说笑
    2020-12-24 09:29

    You'll have to have a context:component-scan in your spring configurations to enable auto detection of @Component . Check the reference.

提交回复
热议问题