在mybatis config.xml中 如果使用了 mapper interface, 那么在 声明时, 不要使用/xx/xx/接口名
, 应当使用xx.xx.接口名
例如: 在hello/Dao/
下声明了 mapper interface UserMapper
Spring boot Failed to parse config resource: class path resource ( mybatis config.xml)
本文指出在mybatisconfig.xml中使用mapperinterface时,应遵循特定命名规则,即在声明时应使用包路径+接口名,如在hello/Dao/下的接口应命名为UserMapper。
摘要由CSDN通过智能技术生成