Idea inspects batis mapper bean wrong

@Repository
@Mapper 
public interface ApplicationMapper {

will do the trick


Another way is to add @Component or @Repository to your mapper interface.

Such as:

@Repository
public interface ApplicationMapper {
    //...
}

I got the same problem. In my Intelli J Inspection Error,

Could not autowire. No beans of 'ApplicationMapper' type found. less... (Ctrl+F1) Checks autowiring problems in a bean class.

in my case, disabled inspections. (Alt + Enter quick fix or change settings)

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable

(2015.04.27 update) After installed myBatis plugin, I had solved this problem, too