问题:开发组说MyBatis的日志信息只能通过顶级日志记录器在debug下打印SQL,所以测试时一大堆的信息,弄得个单元测试,启动要老半天。 ????为了解决这样的问题,我看了下开发组的日志信息配置,代码如下: lo...
分类:
其他 时间:
2014-10-30 12:01:23
收藏:
0 评论:
0 赞:
0 阅读:
377
让Hibernate能自动创建数据库的关键是在连接url中添加一个键值, 示例url如下: jdbc:mysql://localhost:3306/dbname?createDatabaseIfNotExist=true 这里有一点要提醒大家: 通常该数据库连接url配置在xml文件里头,...
分类:
数据库技术 时间:
2014-10-30 12:01:14
收藏:
0 评论:
0 赞:
0 阅读:
344
1, 安装准备 ? 1.1 下载http://mirror.bjtu.edu.cn/apache/zookeeper/zookeeper-3.3.3/zookeeper-3.3.3.tar.gz 1.2 安装jdk : 我的是jdk-1.6.0_14-fcs 1.3 系统: linux?:centos-5.4 1.4 hadoop安装配置: ??...
分类:
其他 时间:
2014-10-30 12:01:03
收藏:
0 评论:
0 赞:
0 阅读:
253
最简单的方式就只一个全局的Map ,然后就是在不同的地方进行注册。 用宏的模式自动生成了注册这一步。作为了一个跳板,那么参数的传递呢??? 不传递零散的args。定义成一个特定的arg结构,在特定的handel中进行强...
分类:
其他 时间:
2014-10-30 12:00:53
收藏:
0 评论:
0 赞:
0 阅读:
252
HELLO! BOOT0 is starting! boot0 version : 2.0.0 ? ? ? ? ? ? ? ? ? ? ? read dram para. dram driver version: 1.15 dram size =1024MB 0x7b7afe7f super_standby_flag = 0 Succeed in opening nan...
分类:
编程语言 时间:
2014-10-30 12:00:33
收藏:
0 评论:
0 赞:
0 阅读:
724
# 题目 > Given an unsorted array of integers, find the length of the longest consecutive elements sequence. > For example, > Given [100, 4, 200, 1, 3, 2], > The longest consecutive elements sequenc...
分类:
其他 时间:
2014-10-30 12:00:23
收藏:
0 评论:
0 赞:
0 阅读:
231
String?testStr?=?" 西式灯饰受欢迎?尽情演绎奢华味道";
testStr?=?testStr.replaceAll("[?| ]",?"?").trim(); ? ?如代码所示,直接用半角空格直接替换调字符串中所有的全角空格,然后再用trim()方...
分类:
编程语言 时间:
2014-10-30 12:00:13
收藏:
0 评论:
0 赞:
0 阅读:
202
http://www.cfei.net/archives/535 依赖项目外包 <dependencies> ? ? ? ?<dependency> ? ? ?<groupId>com.polites.android</groupId> ? ? ?<artifactId>gesture-imageview</artifactId> ? ? ? ? ?...
分类:
其他 时间:
2014-10-30 12:00:03
收藏:
0 评论:
0 赞:
0 阅读:
178
Android的GridView控件用于把一系列的空间组织成一个二维的网格显示出来 应用的比较多的就是组合图片显示 下面我就详细讲一个例子 ? ? 首先写一个类继承BaseAdapter [java]?view plaincopy public?class?Ima...
分类:
移动平台 时间:
2014-10-30 11:59:43
收藏:
0 评论:
0 赞:
0 阅读:
314
使用apache的重写规则来禁用OPTIONS方法。方法如下: 在apache配置文件http.conf中添加以下代码:
LoadModule rewrite_module path/to/apache/modules/mod_rewrite.so
RewriteEngine On
RewriteCo...
分类:
Web开发 时间:
2014-10-30 11:59:33
收藏:
0 评论:
0 赞:
0 阅读:
363
费用跟踪应用采用了Wijmo5和Ionic Framework创建,目的是构建一个hybird app。 我们基于《Mobile first! Wijmo 5 + Ionic Framework之:Hello World!》的环境,将在本教程中完成费用跟踪App的构建。下面的代码结...
分类:
移动平台 时间:
2014-10-30 11:59:23
收藏:
0 评论:
0 赞:
0 阅读:
378
<!DOCTYPE html> <html> <head> ? ? <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> ? ? <!--meta name="format-detection" content="telephone=no"/> ? ? <meta name="viewport" ...
分类:
Web开发 时间:
2014-10-30 11:59:13
收藏:
0 评论:
0 赞:
0 阅读:
269
引入内联函数的目的是为了解决程序中函数调用的效率问题。? 函数是一种更高级的抽象。它的引入使得编程者只关心函数的功能和使用方法,而不必关心函数功能的具体实现;函数的引入可以减少程序的目标代码,实现程...
分类:
其他 时间:
2014-10-30 11:58:53
收藏:
0 评论:
0 赞:
0 阅读:
156
salt?内建分组,使用相当方便
salt?‘*‘?grains.ls??
salt?‘*‘?grains.items ???比如升级centos?系统补丁:
???salt?‘os:CentOS‘?cmd.run?‘yum?update?-y‘
???所有kvm?虚拟机上执行命令
...
分类:
其他 时间:
2014-10-30 11:58:43
收藏:
0 评论:
0 赞:
0 阅读:
312