会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Alex_TD
博客园
首页
新随笔
联系
订阅
管理
公告
2020年2月18日
Spring ----IOC
摘要: 1.spring : 对象交由Spring 创建 管理 装配 core: Bean container aop: orm he dao: web: context: mvc: 2.IOC:控制反转 IOC容器(ApplicationContent) DI 依赖注入 3.XML配置模式,在XML中配置
阅读全文
posted @ 2020-02-18 22:15 Alex_TD
阅读(61)
评论(0)
推荐(0)
编辑
Mybatis 缓存
摘要: 1.一级缓存默认开启,存在于一个sqlsession 会话中, sqlsession查完会被关闭。 2.二级缓存:基于namespace 范围, 在Mapper XML中配置。 二级缓存 方式:1FIFO 2 最近最少用LRU,3 SOFT。。。4.WEAK 一级缓存查完后,丢入二级缓存,再查从二级
阅读全文
posted @ 2020-02-18 20:01 Alex_TD
阅读(84)
评论(0)
推荐(0)
编辑
Mybatis---SQL 动态
摘要: 1.数据库驼峰命名转换:<setting name="mapUndersorceToCamelCase" value="true"> 2.数据库id随机生成:UUID.randomUUID().toString().replaceAll("-",""); //bfd1cc7f9dbe438db9eb
阅读全文
posted @ 2020-02-18 19:37 Alex_TD
阅读(64)
评论(0)
推荐(0)
编辑
Mybaits-----多对一
摘要: 1. 学生表 (id,name,teacherid) 和老师表 (id,name) select id,name,teachername from stu,teacher where stu.teacherid=teacher.id; 注意:Pojo 要包含无参构造函数,很重要 ResultMap
阅读全文
posted @ 2020-02-18 17:53 Alex_TD
阅读(90)
评论(0)
推荐(0)
编辑
动态代理模式之=====接口代理
摘要: 1.Proxy.newInstance(ClassLoader[] , new Class[] interfaces,InvocationHandler h) 2.InvocationHandler 实现类 invoke( Object proxy,Method method,Object[] ..
阅读全文
posted @ 2020-02-18 13:19 Alex_TD
阅读(263)
评论(0)
推荐(0)
编辑