`
wkrain
  • 浏览: 6466 次
  • 性别: Icon_minigender_1
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表

threadlocal使用

    博客分类:
  • java
public class ThreadProperty{             private static ThreadLocal<Map<String, Object>> threadProperty= new ThreadLocal<Map<String, Object>>() {                     protected synchronized Map<String, Object> initialValue() {                           return new Has ...
框架部分 public abstract class ApplicationContext {      public abstract Object getBean(String id); } public class BeanDefinetion {     private String id;     private String type;     private List<PropertyDefinition>   propertyDefinitions=new ArrayList<PropertyDefinition>();     public ...
课堂上讲课时写的一个简单的仿struts2框架 package intecerptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import struts.Action; /** * * @author Administrator */ public interface  ActionInvocation {   public Action getAction() ;   public String invoke() throws Exc ...

Interceptor的实现

    博客分类:
  • java
public interface Action {   public String execute() throws Exception; } public class TestAction implements Action {     public String execute() throws Exception {        System.out.println("action exe");        return "success";     } } public interface Interceptor {    public ...
Global site tag (gtag.js) - Google Analytics