会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rrzlfr
博客园
首页
新随笔
联系
订阅
管理
[置顶]
Mybatis多表查询,从“学”到“不会”
摘要: Mybatis多表查询总结 1多表查询的主要实现方式 join查询 <select id="#" resultMap="#"> select <include refid="#" /> from # left join # on # = # </select> 核心特点: 使用join语句可以一次性
阅读全文
posted @ 2026-01-28 18:41 瑞瑞子
阅读(14)
评论(0)
推荐(0)
2026年1月31日
拦截器的应用
摘要: 自定义拦截器的实现 以TimeInterceopt为例 点击查看代码 @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws
阅读全文
posted @ 2026-01-31 11:21 瑞瑞子
阅读(4)
评论(0)
推荐(0)
2026年1月30日
Spring技术
摘要: 一.配置 1application.properity配置 点击查看代码 spring.datasource.url=jdbc:mysql://localhost:3306/text?useUnicode=true&characterEncoding=UTF-8&useSSL=false sprin
阅读全文
posted @ 2026-01-30 16:37 瑞瑞子
阅读(5)
评论(0)
推荐(0)
2026年1月29日
Springboot请求
摘要: Springboot请求方式 一.静态 1.存放位置 默认存放在 src/main/resources/static/ 目录下。 2.访问方式 直接通过URL路径访问,例如 文件:src/main/resources/static/page1.html 访问路径: localhost:8080/pa
阅读全文
posted @ 2026-01-29 16:57 瑞瑞子
阅读(3)
评论(0)
推荐(0)
2026年1月28日
友链
摘要:
阅读全文
posted @ 2026-01-28 08:51 瑞瑞子
阅读(4)
评论(0)
推荐(0)
2026年1月27日
动态sql
摘要: 批量增加 测试类 public void test7() throws IOException { List<Employee> list = List.of(new Employee(15L, "张三", 1000.0, true), new Employee(16L, "李四", 2000.0,
阅读全文
posted @ 2026-01-27 19:47 瑞瑞子
阅读(9)
评论(0)
推荐(0)
动态sql
摘要: 删除 实现 @Override public int deleteByIds(Long[] ids) { SqlSession sqlSession = MyBatisTool.getSqlSession(); int m = sqlSession.delete("cn.wolfcode.mappe
阅读全文
posted @ 2026-01-27 13:55 瑞瑞子
阅读(9)
评论(0)
推荐(0)