自我感觉没有地方配置错,各位来看看到底怎么回事。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [config/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sqlSessionFactoryBeanName' of bean class [org.mybatis.spring.mapper.MapperScannerConfigurer]: Bean property 'sqlSessionFactoryBeanName' is not writable or has an invalid setter method. Does theparameter type of the setter match the return type of the getter?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in class path resource [config/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sqlSessionFactoryBeanName' of bean class [org.mybatis.spring.mapper.MapperScannerConfigurer]: Bean property 'sqlSessionFactoryBeanName' is not writable or has an invalid setter method. Does theparameter type of the setter match the return type of the getter?
解决方案 »
- AXIS2传输压缩文件问题
- 我想开发一个简单的开源框架,用于替代SSH框架,J2EE开发框架 JDF 开源项目 团队人才招募中
- Structs1.2 数据库配置出错 (100分) Cannot create JDBC driver of class 'COM.ibm.db2.jdbc.app.DB2Driver' for ..
- hibernate 查询
- 编程实现窗口间的信息传递
- 欢迎加入Android开发中来
- struts里,控件如何起资源束的值
- HIBERNATE醒目.请问为什么总是会出现"事务不再活动"的错误呢?
- 怎样实现A001...A009,A010这种形式的累加!
- JAVA 怎样解决程序卡死, 内存爆满的问题?
- 来自弱鸡的每日一问
- Java服务器报错
你定义的是sqlSessionFactory,应该注入sqlSessionFactory啊