java
文章平均质量分 60
唐稚骅
这个作者很懒,什么都没留下…
展开
-
Java HashMap实现详解
* Applies a supplemental hash function to a given hashCode, which * defends against poor quality hash functions. This is critical * because HashMap uses power-of-two length hash tables, t转载 2014-11-14 16:21:42 · 457 阅读 · 0 评论 -
SSH整合之路
SSH整合之路前言对于Java Web开发的初学者来说,搭建一个SSH框架的项目一直是入门的拦路虎。主要原因:1、struts2、spring和hibernate各自的版本众多。它们之间的兼容性问题增加了整合的难度。2、对于较新版本之间的整合资料太少。老版本之间的整合方法不一定适用。3、官方的参考文档自身存在的问题,经常让人摸不着头脑。经过三天苦逼的生活,终于整合成功。就想原创 2015-01-29 11:25:39 · 1790 阅读 · 0 评论 -
HashMap源码分析
1、hashmap的数据结构1>hashmap中几个重要的成员变量 /** * The table, resized as necessary. Length MUST Always be a power of two. */ transient Entry[] table; /** * The number of key-valu原创 2015-01-22 16:51:10 · 335 阅读 · 0 评论 -
java中的异常机制
发现错误的理想时机是在编译阶段,也就是再试图运行程序之前。然而,编译期间并不能发现所有的错误,余下的问题必须在运行时期解决。异常则是处理运行期间错误的一种有效手段。它的优势在于将检测错误从处理错误中分离出来。java中的异常类型:http://www.processon.com/embed/552b23c5e4b0e5776708dce9原创 2015-04-13 08:59:21 · 363 阅读 · 0 评论 -
SSH:Field 'id' doesn't have a default value
SSH框架版本struts2.3+hibernate4.3+spring4.0Field 'id' doesn't have a default value1>User类public class User { private Integer id; private String username; private String passw原创 2016-04-21 19:43:15 · 1205 阅读 · 0 评论 -
SSH:Server Apache Tomcat atlocalhost failed to start
SSH框架版本struts2.3+hibernate4.3+spring4.0Server Apache Tomcat atlocalhost failed to start一般是与其他软件冲突,解决方法:1》 停用冲突的软件2》 重启Tomcat3》 重启 Eclipse4》 重启电脑5》原创 2016-04-21 19:44:10 · 1031 阅读 · 0 评论 -
SSH:Struts has detected an unhandled exception
SSH框架版本struts2.3+hibernate4.3+spring4.0Struts has detected an unhandled exception: Write operations are not allowedin read-only mode (FlushMode.MANUAL): Turn your Session intoFlushMode.COMMIT/AUTO原创 2016-04-21 19:46:08 · 3069 阅读 · 0 评论 -
SSH导入jar包
SSH框架版本:struts2.3 + hibernate4.3 + spring4.01> 导入struts的jar包struts-2.3.16.1-all\struts-2.3.16.1\apps\struts2-blank\WEB-INF\lib下所有的jar包。struts-2.3.16.1-all\struts-2.3.16.1\lib下的struts2-spring-pl原创 2016-04-21 19:48:20 · 2599 阅读 · 1 评论