Spring In Action学习笔记-简化XML的配置
10月 2, 2014 |
Nix.Huang
1 自动组装(autowire)的四种类型 byName: byType: constructor: 类型和构 […more]
1 自动组装(autowire)的四种类型 byName: byType: constructor: 类型和构 […more]
1 spring的两大核心功能 依赖注入和aop ,作用是程序解耦 2 构造函数注入 <bean id= […more]
本文测试所用的jquery版本是[jquery-1.11.1.js] jQuery提供了[bind,unbin […more]
最近好奇了解了一点javascrip的继承机制,我是做java的,javascript的继承困扰了我很久,Go […more]
最近在学习DIV+CSS 布局,根据aa25.cn上的《十天学会DIV+CSS(WEB标准)》教程学习,里面有 […more]
目录: 1、区分 #{} 和 ${}的不同应用场景 2、spring环境用mybatis-spring 的接口 […more]
假设有如下的mapper:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<select id=”testForeach” parameterType=”map” resultType=”Student”> Select * from student <where> <if test=”ID != null and ID != ‘’ ”> ID = #{ID} </if> <if test=” IDArr != null and IDArr.size()>0”> And ID IN <foreach collection="IDArr" open="(" separator="," close=")" item="ID"> ${ID} </foreach> </if> </where> </select> |
这个动态SQL很 […more]
示例 <style type=”text/css”> body { font-family: Ve […more]