spring 注入枚举类型作为参数
2015-10-15 20:07
369 查看
写法如下
不能这样写
<bean id="filingDataForCat35SupportFCCatOneWayCdNotEqual4" class="net.atpco.dds.offline.filing.model.rules.GFSFareClassControl"> <property name="inFilingInd"><value type="net.atpco.dds.offline.filing.common.enums.YesNoEnum">Y</value> </bean>
不能这样写
</pre><pre name="code" class="html"><bean id="filingDataForCat35SupportFCCatOneWayCdNotEqual4" class="net.atpco.dds.offline.filing.model.rules.GFSFareClassControl"> <property name="inFilingInd1" value="net.atpco.dds.offline.filing.common.enums.YesNoEnum.Y"></property> </bean>
相关文章推荐
- Java中,Iterator的讲解
- struts2 action 使用心得 - 1
- 让eclipse中选中的变量以指定颜色高亮显示
- java 中特殊字符
- ssh struts小案例hello
- 如何将现有的web程序导入到myeclipse环境中去
- Eclipse Building Workspace 速度慢解决办法
- Hive 启动异常: java.net.URISyntaxException: Relative path in absolute URI:
- 马士兵Java课堂笔记-4-Math.round()函数-强制转换中可以实现四舍五入
- javaweb项目-MyEclipse环境搭建配置
- 动态生成java、动态编译、动态加载
- java解析xml的几种方式
- Struts中ActionContext和ServletActionContext
- Spring之IOC和AOP
- jre7精简
- 《程序设计教学法--以Java程序设计为例》
- Zip file is unreadable. Cause: java.util.zip.ZipException: invalid entry size
- Ubuntu 配置 JDK 环境变量
- java comparator 排序 定义比较器内部类的方式排序 通用排序方式 非常灵活
- java 实现 Comparable用法 排序方式