今天在mybaties配置文件中碰到这样的一个问题:The content of element type "configuration" must match 解决如下:properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,
分类:
其他好文 时间:
2016-03-07 21:00:17
阅读次数:
212
【转】The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?... <?xml version="1.0" enc
分类:
其他好文 时间:
2016-03-07 18:38:34
阅读次数:
157
题目描述 涵涵有两盒火柴,每盒装有 n 根火柴,每根火柴都有一个高度。现在将每盒中的火柴各自排成一列,同一列火柴的高度互不相同,两列火柴之间的距离定义为:Σ(ai-bi)^2, i=1~n,其中ai表示第一列火柴中第i个火柴的高度,bi表示第二列火柴中第i个火柴的高度。 每列火柴中相邻两根火柴的位置
分类:
其他好文 时间:
2016-03-05 13:06:21
阅读次数:
110
spring提供了大量经常使用的功能測试,如文件上传、restful风格url訪问。以下介绍主要介绍下test中经常使用功能的使用方法: 首先能够静态导入类。方便在測试类中使用,导入的类有 import static org.springframework.test.web.client.match
分类:
编程语言 时间:
2016-03-04 13:18:37
阅读次数:
198
运行结果:
一个隐式意图
布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2016-03-03 21:27:13
阅读次数:
226
android:latout_width fill_parent 设置组件宽高,fill和wrap相同 match_parent wrap_content android:text 组件中文字 组件中文字 android:ems 数值和长度单位 英文字M的数倍 android:inputType t
分类:
其他好文 时间:
2016-03-02 23:38:12
阅读次数:
187
本文介绍了使用Python正则表达式的常见问题,match与search的使用,贪婪与非贪婪的选择以及使用re.VERBOSE标志等...
分类:
编程语言 时间:
2016-03-02 00:29:23
阅读次数:
264
大意:给一个字符串,问最长的既是前缀又是后缀又是中缀(这里指在内部出现)的子串。 我自己的做法是用KMP的next数组,对所有既是前缀又是中缀的位置计数,再从next[n]开始走next,也即枚举所有既是前缀又是后缀的子串,看cnt[i]是否大于0,如果大于0则说明作为中缀出现过(也即有大于i的某个
分类:
其他好文 时间:
2016-03-01 22:22:03
阅读次数:
277
要弹出PopupWindow窗口的布局<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFBBFFBB"
android:..