问答详情
源自:4-5 基于myBatis实现DAO编程(下)

一直报这个错

lError in the bean with the name 'org.mybatis.spring.mapper.MapperScannerConfigurer' defined in the classpath resource [spring/spring-dao.xml]: bean instantiation failed; nested exception is java.lang.IllegalStateException: no Specify the bean class on the bean definition

我仔细检查过spring-dao.xml文件了 https://img4.mukewang.com/5b44618a00015c6c05570344.jpg

提问者:慕仔6516052 2018-07-10 15:34

个回答

  • 晴天_yoyo
    2018-08-05 02:09:37

    https://img2.mukewang.com/5b65ebc000014d0105330306.jpg

    不多说

    https://img1.mukewang.com/5b65ebd3000185fc07160173.jpg

  • 抓娃工程狮
    2018-07-14 20:45:15

    最后那个MapperScannerConfigurer  bean写错了,写成了id填了类路径,应该是class