quartz使用时遇到的问题Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx
来源:互联网 发布:javascript json rpc 编辑:程序博客网 时间:2024/05/21 19:35
直接翻译就是 名称为“xxx”的bean不能进行写操作或者有一个无效的setter方法
Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx'?
这是以前处理过的老问题了,但是最近又出现了。
这样的问题一般有几种可能
1 变量名错误 ,这是比较简单的错误 仔细核对注入的值和变量是否一致
2 变量名不符合javabean的命名规范
JavaBean关于属性命名的特殊规范
spring配置文件中<property>元素所指定的属性名和Bean实现类的Setter方法满足Sun JavaBean的属性命名规范:xxx的属
性对应setXxx()方法.
一般情况下,Java的属性变量名都以小写字母起头,如:maxSpeed.但也存在特殊的情况,考虑到一些特定意义的大写英文缩略
词(如:USA,XML),JavaBean也允许大写字母起头的属性变量名,不过必须满足: 变量的前两个字母要么全部大写,要么全部小写.
如:iC,iCcard,iDcode这些都不合法的.
例如我有一个属性叫 Db 就会出错。。。不得已我换成了dbUtil
阅读全文
0 0
- quartz使用时遇到的问题Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx
- Bean property 'service' is not writable or has an invalid setter method. Did you mean 'serivce'?
- Bean property 'manualPaperService' is not writable or has an invalid setter method. Did you mean 'ma
- Bean property 'interceptorDao' is not writable or has an invalid setter method. Did you mean 'interc
- Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- 异常处理:Bean property 'XXX' is not writable or has an invalid setter method.
- Spring 配置文件报错:Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- 使用spring注入时出现 XXX is not writable or has an invalid setter method
- Spring配置文件加载时出现Bean property 'newscontentDAO' is not writable or has an invalid setter method错误的解决
- 搭建框架遇到SessionFactory is not writable or has an invalid setter method的问题
- Bean property 'loginDAO' is not writable or has an invalid setter method
- 错误信息:Bean property 'sessionFactory' is not writable or has an invalid setter method.
- Bean property 'annotatedClasses' is not writable or has an invalid setter method
- Bean property 'adminService' is not writable or has an invalid setter method
- Bean property XX' is not writable or has an invalid setter method
- SpringMVC常用注解
- 复习:前台页面设计——网页设计的布局、HTML常用的布局结构
- 肾阴虚
- 有序表查询之一:java实现整型数组二分查找
- 深度评测:和市场主流AR SDK对比,亮风台HiAR SDK有这些优势
- quartz使用时遇到的问题Bean property 'xxx' is not writable or has an invalid setter method. Did you mean 'xxx
- Freemarker-数字默认格式化问题
- select2学习
- maven-小白入门学习笔记1
- Android studio 出现java.lang.NoClassDefFoundError错误的一种解决方案 5.0以下机型无法运行应用报错
- 每天进步一点点——五分钟理解一致性哈希算法(consistent hashing)
- 从mysql导入数据到mongodb
- JSP中的include指令、application内置对象、JSP中内置对象的范围
- 并行Zhang细化算法FPA算法