会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
星剑
烘炉之剑,终将羽化;星剑出鞘,承天载地; 三千弱水,独取一瓢;以剑磨意,炼道成真。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2017年6月15日
Spring《六》管理Bean
摘要: BeanWrapper BeanFactory ApplicationContext 1、通常情况下使用BeanFactory、ApplicationContext 2、ApplicationContext包含了BeanFactory相关功能是超集。
阅读全文
posted @ 2017-06-15 15:47 星剑
阅读(165)
评论(0)
推荐(0)
2017年6月13日
Spring《五》集合的注入方式
摘要: List、Set、Map、Properties 1、List <property name="msg"> <list> <value>gf</value> <value>gd</value> <value>HelloWorld</value> </list> </property> 2、Set <p
阅读全文
posted @ 2017-06-13 17:49 星剑
阅读(217)
评论(0)
推荐(0)
Spring《四-一》解决自动装配的问题
摘要: 自动化装配使得研发减少了响应的指配工作,但是使得响应的检查难以完成。 解决方法: simple模式: <bean autowire="autodetect" dependency-check="simple"> 1、基本类型、字符串和集合进行依赖检查。 object模式:<bean autowire
阅读全文
posted @ 2017-06-13 16:24 星剑
阅读(224)
评论(0)
推荐(0)
spring《四》自动装配
摘要: byName模式<bean autowire="byName"> Spring会查找一个叫做date的bean定义。 byType模式<bean autowire="byType"> 1、Spring会查找bean中类型和Date相同类型的bean进行赋值。 2、如果发现多个就会抛出异常。 3、如果
阅读全文
posted @ 2017-06-13 16:07 星剑
阅读(145)
评论(0)
推荐(0)
Spring《三》ref 引用其他bean
摘要: local属性 1、被引用id必须在同一个xml中。 2、被引用id必须使用id命名。 优点提前检查所使用的bean id是否正确。 Bean属性 1、Bean指定的id可以在不同的xml中。 2、Bean指定的id 所对应的bean可以使id或name。 parent属性
阅读全文
posted @ 2017-06-13 15:29 星剑
阅读(591)
评论(0)
推荐(0)
Spring《二》 Bean的生命周期
摘要: Bean初始化 1、bean中实现public void init();方法,config.xml中增加init-method="init" 属性。 2、bean实现接口InitializingBean,实现方法afterPropertiesSet,配置文件无需改动。 Bean的使用 1、 Hell
阅读全文
posted @ 2017-06-13 14:44 星剑
阅读(186)
评论(0)
推荐(0)
Spring《一》
摘要: 1、支持的注入方式 构建注入,set注入 2、bean属性 id、name、class、singleton(true、false)、depends-on="date"(初始化依赖) 3、property(name) <value></value>,<ref bean="date"/>,<bean i
阅读全文
posted @ 2017-06-13 10:16 星剑
阅读(276)
评论(0)
推荐(0)
2017年3月23日
Fragment间相互调用并传值
摘要: public class MainFragment extends Fragment { private static final String ARG_DATE="com.example.ting.datepickerfragment,date"; private static final Str
阅读全文
posted @ 2017-03-23 02:04 星剑
阅读(307)
评论(0)
推荐(0)
2017年3月21日
Activity、Fragment、ViewPage
摘要: 1、新建super
阅读全文
posted @ 2017-03-21 15:57 星剑
阅读(254)
评论(0)
推荐(0)
2017年3月20日
Android Fragment RecycleListView
摘要: 1、新建SuperActivity
阅读全文
posted @ 2017-03-20 17:21 星剑
阅读(815)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告