`
mqzsweet
  • 浏览: 135208 次
  • 性别: 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?

    proxool jar包

    Invalid property 'houseKeepingSleepTime' of bean class [org.logicalcobwebs.proxool.ProxoolDataSource]: Bean property 'houseKeepingSleepTime' is not writable or has an invalid setter method. Does the ...

    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...

    精通pl/sql part2

    精通pl/sql part2

    Storage Not Writable(解决方案).md

    Storage Not Writable(解决方案).md

    Directory Not Writable(解决方案).md

    Directory Not Writable(解决方案).md

    Backup Directory Not Writable(解决方案).md

    Backup Directory Not Writable(解决方案).md

    Cache Directory Not Writable(解决方案).md

    Cache Directory Not Writable(解决方案).md

    php is_writable判断文件是否可写实例代码

    - **文件权限**:在Linux/Unix系统中,文件的权限包括读、写和执行,通过`chmod`命令可以更改文件的权限设置,影响`is_writable()`的返回结果。 - **Web服务器用户**:了解Web服务器运行时使用的用户(如`www-data`...

    浅析is_writable的php实现

    在某些情况下,内置的is_writable()函数可能无法正确地判断文件或目录的可写状态,比如在检查远程文件系统或某些特殊权限设置的情况下。这时,我们就可能需要自定义一个函数来模拟is_writable()的功能。 在给定的...

    解决内存不能为read,write

    5. **检查内存配置**:确认BIOS设置中的内存配置是否正确,如有必要,可以尝试重置BIOS。 **解决方案:** 1. **关闭不必要的程序**:减少内存负担,避免程序间的冲突。 2. **安全模式启动**:在安全模式下启动电脑...

Global site tag (gtag.js) - Google Analytics