会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Alex_TD
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2020年2月19日
Sring---注入方式
摘要: 1.bean.xml 创建完成成为Spring的bean的配置文件,通过Spring容器类 加载配置文件 使用。 注: 依赖注入:1.依赖:bean对象的创建依赖spring容器。 2.注入:bean对象中的所有属性,由容器来注入。 注入方式:1.构造器注入:3种方式 2.set注入:必须要有无参构
阅读全文
posted @ 2020-02-19 14:19 Alex_TD
阅读(177)
评论(0)
推荐(0)
编辑
配置文件编译问题:扫描包的问题 和 编译字符编码问题 和编译器版本1.5问题
摘要: 配置文件编译问题:扫描包的问题 和 编译字符编码问题 和编译器版本1.5问题<build > <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</includ
阅读全文
posted @ 2020-02-19 14:14 Alex_TD
阅读(140)
评论(0)
推荐(0)
编辑
Spring ----XML的配置说明
摘要: 1.别名 给id 起别名: <bean id="hello" class="com.chen.pojo.Hello"> <property name="id" value="1"/> <property name="name" value="lll"/> </bean><alias name="he
阅读全文
posted @ 2020-02-19 12:55 Alex_TD
阅读(138)
评论(0)
推荐(0)
编辑
Spring-Bean 创建对象的方式
摘要: 1.通过无参构造函数创建(默认) 2.通过有参构造创建 1.constructor 的index赋值 <bean id="user" class="com.c.pojo.user"> <constructor-arg index= 0 value=" "> </bean> 2.constructor
阅读全文
posted @ 2020-02-19 12:44 Alex_TD
阅读(227)
评论(0)
推荐(0)
编辑
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)
编辑
2020年2月17日
Mybatis----注解方式开发
摘要: 1注解开发: @select ( “select * from user where id=#{id} and name=#{user}”) User getUserList(@Param("id2") int id,@Param("user") String name) :@Param :应该是防
阅读全文
posted @ 2020-02-17 19:14 Alex_TD
阅读(153)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
10
下一页