摘要: 1. 2. 阅读全文
posted @ 2016-12-21 23:55 Sharpest 阅读(3166) 评论(0) 推荐(0) 编辑
摘要: 转自https://www.cnblogs.com/bkyshichao/p/7090401.html Java 中的instanceof 运算符是用来在运行时指出对象是否是特定类的一个实例。instanceof通过返回一个布尔值来指出,这个对象是否是这个特定类或者是它的子类的一个实例。 用法:re 阅读全文
posted @ 2016-12-21 23:42 Sharpest 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/d124939312/article/details/79021952 阅读目录 1.Set注入 2.构造器注入 3.静态工厂的方法注入 4.实例工厂的方法注入 平常的Java开发中,程序员在某个类中需要依赖其它类的方法。 通常是new一个依赖类再调 阅读全文
posted @ 2016-12-21 23:26 Sharpest 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 1. 阅读全文
posted @ 2016-12-21 03:42 Sharpest 阅读(4462) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/xxj19950917/article/details/73002046 阅读全文
posted @ 2016-12-21 03:31 Sharpest 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/renxiaoren/p/5088796.htmlhttp://www.cnblogs.com/renxiaoren/p/5088796.html 有时候,我们希望表单中的文本框是只读的,让用户不能修改其中的信息,如使input text的内容,中 阅读全文
posted @ 2016-12-21 03:17 Sharpest 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/haozhugogo/article/details/54575802sql 面向数据库表查询hql 面向对象查询hql : from 后面跟的 类名+类对象 where 后 用 对象的属性做条件sql: from 后面跟的是表名 where 后 用 阅读全文
posted @ 2016-12-21 03:08 Sharpest 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/sunxucool/archive/2013/06/04/3117193.html 延长action中属性的生命周期,包括自定义属性,以便在jsp页面中进行访问,让actionContextcleanup过滤器来清除属性,不让action自己清除 阅读全文
posted @ 2016-12-21 02:20 Sharpest 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/skk_7/article/details/17917339 hibernate延迟加载: 一个person对应多个school,使用hibernate处理关联关系: T_PERSON表: T_SCHOOL表: person类: [java] vie 阅读全文
posted @ 2016-12-21 02:07 Sharpest 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/gengkunpeng/article/details/6225286?utm_source=blogxgwz4 1. struts2.3.15 hibernate 3.2.0 整合,报错Exception in thread "main" Java 阅读全文
posted @ 2016-12-21 01:03 Sharpest 阅读(1037) 评论(0) 推荐(0) 编辑