技术杂碎

hibernate get和load的区别

http://gmarwaha.blogspot.com/2007/01/hibernate-difference-between-sessions.html

http://chillwarmoon.javaeye.com/blog/99440

java线程相关的知识

struts action

 Action类被设计为线程安全的,在每个应用中每个Action类只会被实例化一次,供所有线程共享。RequestProcessor利用一个HashMap用来保存Action实例。

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

 <bean name="/login" class="com.test.struts.action.LoginAction" singleton="false"></bean>

</beans>

绿色字体是关于转交控制权的配置内容

属性singleton="false",指明了Action 的实例获取方式为每次重新创建。解决了Struts中令人诟病的线程安全问题(Struts中,由一个Action实例处理所有的请求,这就导致了类公用资源在并发请求中的线程同步问题。)(摘自spring开发指南)

ibatis的使用

连接数据库

DriverManager

Connection

Statement

ResultSet

类方法体的写法

读文本的方法

线程相关的知识

设计模式 

 搜集java面度相关的试是和基础资料

原文地址:https://www.cnblogs.com/lexus/p/1389788.html