首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring配置文件中id的第二个字母不能大写有关问题 (转)

2012-11-06 
Spring配置文件中id的第二个字母不能大写问题 (转)Spring配置文件中id的第二个字母不能大写问题 http://xi

Spring配置文件中id的第二个字母不能大写问题 (转)
Spring配置文件中id的第二个字母不能大写问题

http://xiaotian-ls.iteye.com/blog/273232

?

?

???? * as "URL".
???? *
???? * @param? name The string to be decapitalized.
???? * @return? The decapitalized version of the string.
???? */
??? public static String decapitalize(String name) {
?if (name == null || name.length() == 0) {
???? return name;
?}
?if (name.length() > 1 && Character.isUpperCase(name.charAt(1)) &&
???Character.isUpperCase(name.charAt(0))){
???? return name;
?}
?char chars[] = name.toCharArray();
?chars[0] = Character.toLowerCase(chars[0]);
?return new String(chars);
??? }

?

?

,为什么我的id大写同样没事啊!- -!在struts中调用无论运用手工注入还是自动注入,都是可以找到此类的.在单元测试中,手工注入方式是可以找到此类的.在单元测试中,自动注入方式是找不到此类的.

热点排行