org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/login' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [com.tony.hr.biz.UsersBiz] for property 'usersBiz'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [com.tony.hr.biz.UsersBiz] for property 'usersBiz': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478)
解决方案 »
- js如何获取隐藏div中子div的宽度
- jsp里面嵌套jsp
- struts2中如何动态获得元素
- struts简单的想不通问题,
- 请教:Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")与Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance()
- 请高手给我看一下是什么问题?谢谢啦
- class文件要放哪里?
- 谁能讲一下jsp的调试问题.我刚学jsp,有些问题真的令我十分郁闷,很多天都解决不了.
- IntelliJ IDEA光标有时候位置不对咋办?
- 请问何处有关于JSP和SERVLET的好书?
- 正则表达式
- 怎么将jsp里的java对象传到js里
usersBiz的值应为com.tony.hr.biz.UsersBiz类型,但传了个String类型的值进去了,
再看下配置吧
<bean name="/login" class="com.tony.hr.web.action.LoginAction">
<property name="usersBiz" ref="usersBiz"></property>
</bean>ref 写成 那么了 -——-
<bean name="/login" class="com.tony.hr.web.action.LoginAction">
<property name="usersBiz" ref="usersBiz"></property>
</bean>写成 <!-- ACTION -->
<bean name="/login" class="com.tony.hr.web.action.LoginAction">
<property name="usersBiz" name="usersBiz"></property>
</bean>