測試的報錯這個事怎么回事啊啊啊
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/imooc/demo/config/dao/SessionFactoryConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: The setting mapUnderscoreToCameCase is not known.? Make sure you spelled it correctly (case sensitive)
2019-09-19
我解決了,重新build project 會有意想不到的驚喜
2019-09-19
也有遇到了這個問題,樓主解決了嗎
2018-10-29
mybatis-config.xml文件中的配置項寫錯了,
你的是
mapUnderscoreToCameCase
正確的應該是
mapUnderscoreToCamelCase
2018-10-18
應該是這個叫sqlSessionFactory的Bean被IOC容器托管時,未能正常完成初始化而引發的異常,好像是因為Mybatis的配置文件在指定的類路徑下不能被找到造成的