求java大神,帮忙解答一下这个错误是什么,怎么解决
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'org...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [spring/spring-dao.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sqlSenssionFactoryBeanName' of bean class [org.mybatis.spring.mapper.MapperScannerConfigurer]: Bean property 'sqlSenssionFactoryBeanName' is not writable or has an invalid setter method. Did you mean 'sqlSessionFactoryBeanName'?
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'sqlSenssionFactoryBeanName' of bean class [org.mybatis.spring.mapper.MapperScannerConfigurer]: Bean property 'sqlSenssionFactoryBeanName' is not writable or has an invalid setter method. Did you mean 'sqlSessionFactoryBeanName'? 展开
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'sqlSenssionFactoryBeanName' of bean class [org.mybatis.spring.mapper.MapperScannerConfigurer]: Bean property 'sqlSenssionFactoryBeanName' is not writable or has an invalid setter method. Did you mean 'sqlSessionFactoryBeanName'? 展开
1个回答
2017-08-06
展开全部
sqlSenssionFactoryBeanName对应的bean,没有setter方法,你必须加上
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |