摘要: struts.xml文件struts.xml文件里的action可以分离出来,如:注:include是放在标签的前面在src下面新建package名为:config.struts,再新建xml文件为warningInformAtion-struts.xml,这样,我们就可以把预警信息监测的actio... 阅读全文
posted @ 2014-06-19 16:24 cnJun 阅读(321) 评论(0) 推荐(0) 编辑
摘要: myeclipse中类的格式上面中的RunMain.java为程序执行的入口,JdbcUtil.java为实体类,XmlDocumentUtil.java执行解释xml文件与获取里面的属性,程序所需要导入的包为dom4j-1.6.1.jar与jaxen-1.1-beta-6.jar,jdbc.cfg... 阅读全文
posted @ 2014-06-19 16:20 cnJun 阅读(2303) 评论(0) 推荐(0) 编辑
摘要: 例子代码理解AOP AOP为Aspect Oriented Programming的缩写,意为:面向切面编程。大概意思就是在原有源代码的基础上,增加功能,而又不修改原有的代码。术语切面(Aspect):进行增加处理的类,比如对一功能增加日志管理操作,定义的日志类便是一个切面。连接点(Joinpoi... 阅读全文
posted @ 2014-06-18 11:09 cnJun 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 例子下载 对于xml的AOP配置主要集中在配置文件中,所以只要设置好配置文件就行了beans.xml 程序运行时先会查看aop:pointcut里面的expression,如果调用的方法在... 阅读全文
posted @ 2014-06-18 09:44 cnJun 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 例子下载beans.xml 首先,在配置文件配置好下面的配置 其中为声明使用annotation部分,会使得程序运行时进行对com.bjsxt包及子包的扫描操作,对于AOP的annotation来说最为主要,标志着可以使用AOP的annotion来进行操作。Aspectp... 阅读全文
posted @ 2014-06-18 09:24 cnJun 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 真不想说博客园的Markdown编辑器,我发表到我的个人博客上多好看的[一篇文章](http://donotevil.com/2014/05/03/ssh%E6%A1%86%E6%9E%B6%E4%B8%AD.xml%E6%96%87%E4%BB%B6%E5%B0%8F%E6%8A%80%E5%B7... 阅读全文
posted @ 2014-05-08 08:33 cnJun 阅读(22795) 评论(0) 推荐(0) 编辑
摘要: public int getTarPage() { String hql = "'"; Query query = getSession().createQuery(hql); int count = ((Number) query.iterate().next()).intValue(); ... 阅读全文
posted @ 2014-04-29 11:40 cnJun 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Session session=getSession(); //进行session查询,取得前16个数据 Query q=session.createQuery(hql).setFirstResult(0).setMaxResults(14); List list=q.list(); releaseSession(session);//释放Session缓存 return list; 阅读全文
posted @ 2014-03-06 14:30 cnJun 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 在连接mongodb时出现以下错误提示信息events.js:72 throw er; // Unhandled 'error' event ^Error: failed to connect to [localhost:27017] at null. (E:\64bit\WebStorm\untitled\node_modules\session-mongoose\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\server.js:553:74) at ... 阅读全文
posted @ 2014-02-14 09:11 cnJun 阅读(23785) 评论(0) 推荐(0) 编辑
摘要: public class test { static int a; public static void main(String[] args) { a =10; parameter(10);//或parameter(a);System.out.println("3:"+a); } private static void parameter(int a){System.out.println("1:"+a); a = 20;System.out.println("2:"+a); }}运行结果:1:102:203:10 此... 阅读全文
posted @ 2014-02-10 09:12 cnJun 阅读(532) 评论(0) 推荐(0) 编辑