会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
枫叶红时
订阅
管理
上一页
1
···
3
4
5
6
7
2022年5月5日
依赖的拓展方式注入
摘要: 我们可以使用p命名空间和c命名空间进行注入 官方解释: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.
阅读全文
posted @ 2022-05-05 21:28 枫叶红时
阅读(44)
评论(0)
推荐(0)
2022年5月4日
IOC创建对象的方式
摘要: 1,采用无参构造创建(默认) 2,假设我们要使用有参构造创建对象 (1)下标赋值 <!--第一种 下标赋值 --><bean id="user" class="com.tan.pojo.User"> <constructor-arg index="0" value="谭宏伟学java"/></bea
阅读全文
posted @ 2022-05-04 19:11 枫叶红时
阅读(111)
评论(0)
推荐(0)
2022年4月13日
动态sql常用标签
摘要: <where></where>标签的作用就在于,若你拼接的第一条语句前面有and则自动去除and 1,<if title=””></if> <select id="queryBlogIF" parameterType="Map" resultType="Blog"> select * from my
阅读全文
posted @ 2022-04-13 20:06 枫叶红时
阅读(315)
评论(0)
推荐(0)
2022年4月12日
mybatis两种嵌套查询方式
摘要: 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=
阅读全文
posted @ 2022-04-12 16:58 枫叶红时
阅读(815)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
公告