摘要: hibernate的版本更新很快,获取sessionFactory的方式也在变化1.通用的方式:public SessionFactory test1(){ Configuration cfg = new Configuration().configure("hibernate.cfg... 阅读全文
posted @ 2015-06-21 21:03 fengyexjtu 阅读(526) 评论(0) 推荐(0) 编辑
摘要: HibernateGenericDAOdao的实现用继承:com.googlecode.genericdao.dao.hibernate.GenericDAOImpl注意几点:1.继承时必须声明泛型的具体类.如上的.HibernateGenericDAO 会调用com.googlecode.gene... 阅读全文
posted @ 2016-01-19 01:02 fengyexjtu 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 1.下载地址https://archive.apache.org/dist/hadoop/common/hadoop-1.2.1/hadoop-1.2.1-bin.tar.gz2.解压tar zxvfhadoop-1.2.1-bin.tar.gz3.配置 1)配置hadoop core-si... 阅读全文
posted @ 2016-01-12 19:56 fengyexjtu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: UbuntuServer除了在安装的过程中会提示设置第一个用户(非root)的用户名和密码,直至安装完成都完全没有涉及到root用户的设置。root用户的密码是什么,又要如何设置root用户,对于刚刚开始使用的用户来说,比较让人困惑。概述 这里是UbuntuServer的官方文档关于该主题的相... 阅读全文
posted @ 2016-01-12 19:40 fengyexjtu 阅读(865) 评论(0) 推荐(0) 编辑
摘要: struts2 标签中read-only=true 和disabled的区别都不能对内容进行修改,区别在readonly提交的时候还会有该字段,但是disabled会在提交的时候忽略该字段 阅读全文
posted @ 2016-01-12 05:39 fengyexjtu 阅读(541) 评论(0) 推荐(0) 编辑
摘要: jdbc:mysql://localhost/${db.name}?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8&autoReconnect=true 阅读全文
posted @ 2016-01-12 05:38 fengyexjtu 阅读(242) 评论(0) 推荐(0) 编辑
摘要: @echo offrem 这里写你的仓库路径set REPOSITORY_PATH=D:\Java\reporem 正在搜索...for /f "delims=" %%i in ('dir /b /s "%REPOSITORY_PATH%\*lastUpdated*"') do ( del /... 阅读全文
posted @ 2016-01-12 05:12 fengyexjtu 阅读(643) 评论(0) 推荐(0) 编辑
摘要: hibernate将enum映射成int或varchar类型1.如果用的是annotation那么用@Enumerated(EnumType.STRING)直接可以映射为String类型2.如果采用XML配置就没这么简单了,网上最多的方法是利用Hibernate提供的UserType但这样并不是最好... 阅读全文
posted @ 2016-01-12 03:52 fengyexjtu 阅读(308) 评论(0) 推荐(0) 编辑
摘要: $ORACLE_HOME/network/admin/sqlnet.ora文件,如果没有可以创建一个新的,加入下面的参数SQLNET.ALLOWED_LOGON_VERSION=8 阅读全文
posted @ 2016-01-12 03:36 fengyexjtu 阅读(2321) 评论(0) 推荐(0) 编辑
摘要: 设置环境变量,如下:1) 变量名:ORACLE_HOME 变量值:D:\Java\instantclient_12_12) 变量名:TNS_ADMIN 变量值:D:\Java\instantclient_12_13) 变量名:NLS_LANG 变量值:SIMPLIFIED CHINESE_CHINA... 阅读全文
posted @ 2016-01-12 03:34 fengyexjtu 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 1)启动脚本(dbstart.sh)lsnrctl startsqlplus /nolog <<EOFconnect / as sysdbastartup;exitEOF$sh dbstart.sh 即可----------2)关闭脚本(dbstop.sh)lsnrctl stopsqlplus /... 阅读全文
posted @ 2016-01-12 03:33 fengyexjtu 阅读(159) 评论(0) 推荐(0) 编辑