`
mqzsweet
  • 浏览: 136952 次
  • 性别: Icon_minigender_1
  • 来自: 江苏
社区版块
存档分类
最新评论

Spring配置文件is not writable or has an invalid setter

阅读更多

最近写SPRING时

用到AOP时由于SPRING的规范问题,所以卡了一会。

 

具体如下

	<bean id="UserGroupService" class="service.impl.UserGroupServiceImpl">
		<property name="userGroupDao
" ref="TbUsergroupDAO"></property></bean>

 

以上是正确的写法

 

如写成:

 

	<bean id="UserGroupService" class="service.impl.UserGroupServiceImpl">
		<property name="UserGroupDao
" ref="TbUsergroupDAO"></property></bean>

 

不管你的变量是大写开头还是小写开头的

都是被SPRING是错误的,所以,注入变量名必须首字母小写

分享到:
评论

相关推荐

    dubbo-admin 管理后台2.5.4 for JDK8

    org.springframework.beans.NotWritablePropertyException: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or...

    org.springframework.web.servlet-3.0.1.RELEASE-A.jar

    nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'error_view' of bean class [com.demo.controller.action.AuthorAction]: Bean property 'error_view' is not ...

    支持jdk8版本dubbo-admin

    property 'URIType' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 这个问题我也在网上找了很久也没有好的解决方案,最后还是...

    Dubbo管理控制台dubbo admin2.X for jdk8 (window,liunx)

    [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of ...

    dubbo-admin jdk1.8

    dubbo-admin 在jdk1.8 环境下会出现Bean property 'URIType' is not writable or has an invalid setter,此版本通过替换citris,spring的低版本解决了这个问题

    org.springframework.transaction-3.1.2.RELEASE.zip

    org.springframework.beans....: Bean property 'transactionManagerBeanName' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

    dubbo-admin-2.5.8.war(编译环境JDK8)

    org.springframework.beans.NotWritablePropertyException: Invalid property 'URIType' of bean class [com.alibaba.citrus.service.uribroker.uri.GenericURIBroker]: Bean property 'URIType' is not writable or...

    dubbo_admin-2.54.war和dubbo_admin_2.54forJDK8

    property 'URIType' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter? 把其中的spring2的系列JAR包换成了spring3的,就可以在JDK8...

Global site tag (gtag.js) - Google Analytics