配置完mybatis后,第一次起項(xiàng)目,起不來,出現(xiàn)的問題就是
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.
2020-07-27
你的配置文件里面沒有掃描到你的mapper.xml文件
<property name="mapperLocations" value="classpath:org/lina/ssm/dao/*Mapper.xml" />
看你的value里的路徑是不是不對