hibernate基本步骤
// 1. 创建Hibernate配置对象
Configuration config = newConfiguration();
config.configure("hibernate.cfg.xml");//加载配置文件
// 2. 创建SessionFactory对象
SessionFactory sessionFactory = config....
分类:
Web程序 时间:
2015-03-31 14:45:08
阅读次数:
144
To restore the database on a new host:1. Ensure that the backups of the target database are accessible on the new host.2. Configure the ORACLE_SID on ...
分类:
数据库 时间:
2015-03-31 12:32:44
阅读次数:
266
---------------------- HAProxy Configuration Manual ------------------...
分类:
其他好文 时间:
2015-03-30 18:03:34
阅读次数:
407
运行环境:虚拟机下的Ubuntu 11.04 结合Graphviz工具,使用CodeViz可以生成直观和漂亮的C/C++程序函数之间的调用关系图。 1、安装graphviz 在安装CodeViz之前,必须先安装它所依赖的工具dot,否则将无法完成./configure操作并提示以下错误信息:chec...
分类:
编程语言 时间:
2015-03-30 17:59:25
阅读次数:
308
参考yum install gcc gcc++呵呵,这样的话还是有组件没有安装完整的。再执行一下这个命令就可以解决问题。yum install gcc gcc-c++gcc-g77
分类:
编程语言 时间:
2015-03-30 12:44:40
阅读次数:
154
(一)下载依赖库libevent(不管解压在哪里必须安装在/usr目录下,否则FastDFS找不到)
wget https://github.com/downloads/libevent/libevent/libevent-1.4.14b-stable.tar.gz
tar zvxf libevent-1.4.14b-stable.tar.gz
./configure --prefix=/u...
分类:
其他好文 时间:
2015-03-29 22:13:31
阅读次数:
119
像之前基于映射文件 .hbm.xml 的SessionFactory类的写法是这样的
private static SessionFactory sessionFactory ;
static
{
sessionFactory = new Configuration().configure().buildSessionFactory();
}
自动生成数据库Schema的类...
分类:
Web程序 时间:
2015-03-29 16:38:39
阅读次数:
158
tar zxf rrdtool-1.2.30.tar.gz
cd rrdtool-1.2.30
./configure
make && make install
ls -l /usr/local/bin/rrdtool
ln -s /usr/local/rrdtool-1.2.30/bin/rrdtool /usr/local/bin/rrdtool
cd ../
快速部署安装rrdtool...
分类:
其他好文 时间:
2015-03-29 16:36:14
阅读次数:
101
1、解析程序包#wgethttp://ftp.isc.org/isc/bind9/9.7.3/bind-9.7.3.tar.gz
#tarxvfbind-9.7.3.tar.gz
#cdbind-9.7.3.tar.gz
#./configure--prefix=/usr/local/bind9--sysconfdir=/etc/named/--disable-ipv6--enable-threads--enable-epoll--disable-chroot
#make
#makeinstall..
分类:
其他好文 时间:
2015-03-28 19:05:38
阅读次数:
414
这篇教程主要介绍如何在Tomcat中configure Contexts and Depedency Injection.
介绍
由于Tomcat并不是一个JavaEE服务器,所以为了使Tomcat获得对CDI的支持必须手动添加一些依赖类库。接下来主要是CDI开发的一些配置和一个简单的CDI实例。
开发环境
1.Ubuntu 12.04
2 JDK 1.7.0.09
3....
分类:
其他好文 时间:
2015-03-28 17:24:14
阅读次数:
235