1、增,向数据库中写入数据,代码如下: /** * 数据保存 * 1、save() * 2、persist() */
@Test
private void testSave(){ Configuration config = new Configuration().configure(); /** ...
分类:
Web程序 时间:
2014-12-08 21:10:24
阅读次数:
316
Hibernate的configuration类:configuration类是用来加载hibernate配置文件的,默认的是读取hibernate.cfg.xml配置文件的信息。Configuration cfg = new Configuration().configure();//Confi....
分类:
其他好文 时间:
2014-12-08 17:10:19
阅读次数:
138
在Linux上搭建apache+fastcgi环境,说多了都是泪啊. 花费我几天时间,开源软件虽说好用,但是版本众多,文档缺乏,什么都只能自己摸索. 终于成功运行起来,特此记录.一. apache 安装 此处下载 apache-2.2.27 版本,常规的 configure make 命令,...
分类:
编程语言 时间:
2014-12-08 17:05:57
阅读次数:
234
libzip编译需要zlib支持configure文件里有这么一句--with-zlib=PREFIXspecifyprefixforZLIBlibrary于是在configure的时候添加--with-zlib="$zlib库的绝对路径"由于在下一步make的时候需要zlib的头文件和库文件,接下来编译好zlibmake-fwin32/makefile.gcc即编译出,将编译出的..
分类:
其他好文 时间:
2014-12-08 15:57:26
阅读次数:
189
使用的是 https://github.com/mingchen/protobuf-ios 首先是下载下来
它其中使用到得命令行
$ cd compiler
$ ./autogen.sh
$ ./configure
$ make
$ make install (optional)
The compiler is genrated at src/protoc....
分类:
移动开发 时间:
2014-12-08 02:07:14
阅读次数:
246
Keepalived部署
编译keepalived
#cd /opt/soft
# wget http://www.keepalived.org/software/keepalived-1.2.12.tar.gz
#tar zxvf keepalived-1.2.12.tar.gz
#cd keepalived-1.2.12
# ./configure && make && make...
分类:
其他好文 时间:
2014-12-07 11:22:04
阅读次数:
297
现在系统中运行一下configure命令,输出以下信息[root@aliyun memcached-1.4.21]# ./configure --help`configure' configures memcached 1.4.21 to adapt to many kinds of systems...
分类:
其他好文 时间:
2014-12-06 12:39:13
阅读次数:
282
installationandadministrationVmsoncentos1.Compileqemuwgethttp://wiki.qemu.org/download/qemu-0.15.1.tar.gztarzxfqemu-0.15.1.tar.gzcdqemu-0.15.1./configure--prefix=/opt/qemu-0.15.1makemakeinstallln-s/opt/qemu-0.15.1/bin/qemu-nbd/usr/local/bin/2.Installvirtual..
分类:
其他好文 时间:
2014-12-05 19:34:01
阅读次数:
196
1:从官网下载node.js源码http://nodejs.org/download/当前最新版为node-v0.10.332:安装$ tar zxvf node-v0.10.33.tar.gz$ cd node-v0.10.33/$ ./configure$ make(需要稍等一会)$ make ...
分类:
Web程序 时间:
2014-12-05 17:10:25
阅读次数:
125
Download:
http://www.tuxera.com/community/ntfs-3g-download/
Installation:
cd ntfs-3g_ntfsprogs-2014.2.15
./configure
make && make install
Usage:
mount -t ntfs-3g /dev/sda1 /mnt/wi...
分类:
移动开发 时间:
2014-12-05 10:57:32
阅读次数:
191