今天接下去讲我们的内容,上次的解析了AnnotationBeanUtils这个类的运用和源码。今天主要关注的是Autowired和 AutowiredAnnotationBeanPostProcessor这2个类。首先我们来看一下Autowired标签的定义。 从标签的定义和上面的注释可以知道,该标 ...
分类:
编程语言 时间:
2017-08-03 22:10:55
阅读次数:
218
解决办法就是添加zkclient的jar,maven工程的话增加如下引用: <dependency> <groupId>com.github.sgroschupf</groupId> <artifactId>zkclient</artifactId> <version>0.1</version> < ...
分类:
其他好文 时间:
2017-08-03 21:52:43
阅读次数:
242
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:
其他好文 时间:
2017-08-03 18:53:35
阅读次数:
147
需要做的配置如下 其中vars所在的目录为 pom文件中一定要有如下的配置 缺一不可 尤其要注意 resources标签,只有包含在resources标签里面的配置文件 里面的${key}才会被替换掉,如果不配resources这种配置文件是不会生效的。 更多信息可以参考 http://www.cn ...
分类:
其他好文 时间:
2017-08-03 16:56:06
阅读次数:
123
1、错误原因 TypeError: Error #1006: value 不是函数。 at BasicChart/dataFunc()[E:\Flash Builder\Map\src\BasicChart.mxml:68] at mx.charts.chartClasses::Series/cac ...
分类:
其他好文 时间:
2017-08-03 15:42:42
阅读次数:
248
一.依赖定义的几种方式 1. <properties> <spring.versin>4.1.6.RELEASE</spring.version> </properties> <dependencies> <dependency> <groupId>org.springframework</grou ...
分类:
其他好文 时间:
2017-08-03 15:41:11
阅读次数:
158
在UML中。关系是很重要的。它抽象出对象之间的联系,让对象构成某个联系起来的结构。以下将简要分析一下UML中的四种关系:关联。依赖,泛化,实现。 一、举例罗列 1、关联(Association) 关联是用来连接有结构关系的对象,能够连接同样类或者不同类。也能够是双向关联和单向关联。 举例说明: 单向 ...
分类:
其他好文 时间:
2017-08-03 15:40:15
阅读次数:
140
相对布局relativeLayout 一、简介 二、实例 代码 /Test_FrameLayout/res/layout/relativelayout.xml ...
分类:
其他好文 时间:
2017-08-03 13:57:54
阅读次数:
145
直接上代码:name = "你好,中国人"byteName = bytes(name.encode("utf-8"))print(byteName)for b in byteName : print(bin(b),end="\t") ...
分类:
其他好文 时间:
2017-08-03 12:32:15
阅读次数:
115
deptno int constraint emp_deptno_fk references dept(deptno))级联约束 deptno int constraint emp_deptno_fk references dept(deptno) on delete set null)或者on d ...
分类:
其他好文 时间:
2017-08-03 10:05:32
阅读次数:
142