Spring EL中的类操作符
2015-09-22 17:30
459 查看
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/beans" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="saxophone" class="com.stono.sprtest.Saxophone"></bean> <bean id="cymbal" class="com.stono.sprtest.Cymbal"></bean> <bean id="duke" class="com.stono.sprtest.Duke"> <property name="instruments"> <set> <ref bean="saxophone"/> <ref bean="saxophone"/> <ref bean="cymbal"/> <null/> </set> </property> <property name="pi" value="#{T(java.lang.Math).PI}"/> <property name="name" value="#{saxophone.getName()}" /> <property name="name2" value="#{saxophone.name}" /> <property name="name3" value="#{saxophone.getName()?.toUpperCase()}" /> <property name="name4" value="#{saxophone.name?.toUpperCase()}" /> </bean> </beans>
相关文章推荐
- java功能模块--给手机发送验证码
- Eclipse快捷键大全(转载)
- 安装Java(JDK) Winodws/Ubuntu
- Spring集合配置
- java eclipse打jar包和执行jar中的main函数
- java动态加载指定的类或者jar包反射调用其方法
- Java 多线程同步的五种方法
- struts2 xml validator 校验
- springmvc继承activemq(原创)
- java 中文简体繁体互相转换
- Eclipse启动出现an error has occurred see the log file的解决方法
- 文件上传
- Java HashMap 的实现原理详解
- java中创建对象的方法
- java web开发 高并发处理
- Custom Authentication Provider in Spring
- Lombok 安装、入门 - 消除冗长的 java 代码
- spring EL表达式,null-safe表达式
- JAVA字符串格式化-String.format()的使用
- Ubuntu 14.04 安装jdk1.6