问答详情
源自:2-4 Mybatis自动生成器使用方式

配置完mybatis后,第一次起项目,起不来,出现的问题就是

Description:


Field userDAOMapper in com.gyj.springboot.controller.UserController required a bean of type 'com.gyj.springboot.dao.UserDAOMapper' that could not be found.



Action:


Consider defining a bean of type 'com.gyj.springboot.dao.UserDAOMapper' in your configuration.


提问者:慕斯卡3000343 2020-07-24 22:26

个回答

  • KuaQ
    2020-07-27 12:08:41

    你的配置文件里面没有扫描到你的mapper.xml文件

    <property name="mapperLocations" value="classpath:org/lina/ssm/dao/*Mapper.xml" />

    看你的value里的路径是不是不对