摘要:
我们可以使用p命名空间和c命名空间进行注入 官方解释: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3. 阅读全文
摘要:
1,采用无参构造创建(默认) 2,假设我们要使用有参构造创建对象 (1)下标赋值 <!--第一种 下标赋值 --><bean id="user" class="com.tan.pojo.User"> <constructor-arg index="0" value="谭宏伟学java"/></bea 阅读全文
摘要:
<where></where>标签的作用就在于,若你拼接的第一条语句前面有and则自动去除and 1,<if title=””></if> <select id="queryBlogIF" parameterType="Map" resultType="Blog"> select * from my 阅读全文
摘要:
1,推荐用第一种 <select id="getTeacher2" resultMap="TeacherStudent"> select s.id sid,s.name sname,t.id tid,t.name tname from teacher t,student s where s.tid= 阅读全文