CSDN博客

img sandoro___

one strange problem about spring 's setting property

发表于2004/7/1 19:20:00  419人阅读

today i got a very strange problem about spring,when i add a property of setting , sometimes it is ok, but sometimes it is wrong with the error message "the property is not writable", eg: setMBListenerServer, setTTTT, setAServer

but some  others  is ok, such as setTest,setServer,et.

so a funny problem

 

实际情况如下:

1:set后如果连续跟两个或以上的大写字符时,则在配置文件中必须和这个属性名大小写一致否则就找不到这个属性,如果没有跟两个或以上字符,则和通常一样

2:set后如果跟一个小写字符时,则无论以后字符如何都不会出错

 

0 0

相关博文

我的热门文章

img
取 消
img