Spring learn the error ____ 1.Type interface com.xbf.dao.UserDao is not known to the MapperRegistry.

UserMapper.xml did not write the file 

and is not configured mybatis core configuration files beans.xml (applicationContext.xml) files
(Note: property namespace: write a corresponding interface)
(Note: After writing Remember Register in the core configuration file )
associated configuration file:
UserMapper.xml ---> the mybatis-config.xml-> applicationContext.xml
*** naive to think that I can be omitted. . . . .

Guess you like

Origin www.cnblogs.com/xbfchder/p/11267204.html