spring04
2024-09-05 06:00:17
今天设计到的内容是是spring的sqel和ioc的生命周期和bean的后置处理器
具体的测试文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- <bean id="address" class="lib3.Address">
使用spel为属性赋一个字面值
<property name="city" value="cjbdiscsa"></property>
<property name="street" value="#{'sahcjwdn'}"></property>
</bean>
<bean id="Car" xmlns="default namespace">
<property name="braca" value="saccas"></property>
<property name="cbajsbc" value=""></property>
使用sqel引用类的静态属性
<property name="scskjvdbsi" value="#{T(java.lang.Math).PI*80}"></property>
</bean>
<bean id="person" class="libxas">
使用sqel引用其他的bean
<property name="car" value="#{car}"></property>
使用sqel来引用其他bean的属性
<property name="city" value="#{address.city}"></property>
在sqel中使用运算符
<property name="info" value="#{car.prece>2000?'jine':'bailing'}"></property>
<property name="name" value="tom"></property>
</bean>
五部生命周期的流程的测试
<bean id="car" class="scaacs"
init-method="init"
destroy-method="destory">
<property name="borad" value="ckds"></property>
</bean>-->
</beans>
在init的前后来执行相应的操作..
可以偷梁换柱
最新文章
- STL迭代器之二:迭代器型别
- java设计模式(六)--观察者模式
- C# 读取在存储过程多结果集
- Dynamic CRM 2013学习笔记(三十九)流程2 - 业务流程(Business Process Flows)用法详解
- Difference between Satisfiable, Valid, Unsatisfiable &; Invalid
- text透明无边框
- JAVA Oauth 认证服务器的搭建
- android模块
- eclipse没有New Java Class的解决办法
- 基于redis的延迟消息队列设计
- 转:OAuth 2.0 介绍
- 在C语言中不使用任何中间变量如何将a、b的值进行交换(三种方法)——来自一小萌新工程师的复习
- Nginx安装echo模块
- 数据泵expdp 在rac环境下 paralle 的处理方法
- Linux 系统TCP连接内存大小限制 调优
- 关于Could not read pom.xml和No plugin found for prefix &#39;tomcate7&#39; in the current project
- spring 集成 mybatis
- Linux - 7种运行级别
- Lua 服务器与客户端实例
- 关于gridview改变行内容事件需要点击别的行或控件才能执行