今天设计到的内容是是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的前后来执行相应的操作..

可以偷梁换柱

最新文章

  1. STL迭代器之二:迭代器型别
  2. java设计模式(六)--观察者模式
  3. C# 读取在存储过程多结果集
  4. Dynamic CRM 2013学习笔记(三十九)流程2 - 业务流程(Business Process Flows)用法详解
  5. Difference between Satisfiable, Valid, Unsatisfiable &amp; Invalid
  6. text透明无边框
  7. JAVA Oauth 认证服务器的搭建
  8. android模块
  9. eclipse没有New Java Class的解决办法
  10. 基于redis的延迟消息队列设计
  11. 转:OAuth 2.0 介绍
  12. 在C语言中不使用任何中间变量如何将a、b的值进行交换(三种方法)——来自一小萌新工程师的复习
  13. Nginx安装echo模块
  14. 数据泵expdp 在rac环境下 paralle 的处理方法
  15. Linux 系统TCP连接内存大小限制 调优
  16. 关于Could not read pom.xml和No plugin found for prefix &#39;tomcate7&#39; in the current project
  17. spring 集成 mybatis
  18. Linux - 7种运行级别
  19. Lua 服务器与客户端实例
  20. 关于gridview改变行内容事件需要点击别的行或控件才能执行

热门文章

  1. Maven pom.xml 添加本地jar包依赖以及打包方法
  2. css3特性简要概括
  3. 2019-2020-2 20174313张博 《网络对抗技术》Exp1 PC平台逆向破解
  4. android弱网络优化
  5. 最详细的SSM(Spring+Spring MVC+MyBatis)项目搭建
  6. 洛谷3834 hdu2665主席树模板,动态查询区间第k小
  7. 题解 P5681 【面积【民间数据】】
  8. 《数据库优化》- MySQL视图
  9. LeetCode45——从搜索算法推导到贪心
  10. docker image换包步骤