上一页 1 ··· 164 165 166 167 168 169 170 171 172 ··· 235 下一页
摘要: StoredProcedure是一个抽象类,必须写一个子类来继承它,这个类是用来简化JDBCTemplate执行存储过程操作的。首先我们写一个实现类:package com.huaye.framework.dao;import java.sql.Types;import java.util.Hash... 阅读全文
posted @ 2014-11-12 21:51 一天不进步,就是退步 阅读(1990) 评论(0) 推荐(0)
摘要: 使用 @Repository、@Service、@Controller 和 @Component 将类标识为 BeanSpring 自 2.0 版本开始,陆续引入了一些注解用于简化 Spring 的开发。@Repository 注解便属于最先引入的一批,它用于将数据访问层 (DAO 层 ) 的类标识... 阅读全文
posted @ 2014-11-12 16:56 一天不进步,就是退步 阅读(948) 评论(0) 推荐(0)
摘要: 从上章里我们已经看到: DispatcherServlet extends FrameworkServlet FrameworkServlet extends HttpServletBean implements ApplicationContextAware 那么HttpServletBean作为 阅读全文
posted @ 2014-11-12 15:50 一天不进步,就是退步 阅读(5609) 评论(0) 推荐(0)
摘要: 前端控制器是整个MVC框架中最为核心的一块,它主要用来拦截符合要求的外部请求,并把请求分发到不同的控制器去处理,根据控制器处理后的结果,生成相应的响应发送到客户端。前端控制器既可以使用Filter实现(Struts2采用这种方式),也可以使用Servlet来实现(spring MVC框架)。 Dis 阅读全文
posted @ 2014-11-11 17:14 一天不进步,就是退步 阅读(26184) 评论(1) 推荐(4)
摘要: Last updated and checked to work with version 3.0.0 of the toolsThis tutorial will take you through the process of using the "Eclipse Integration Grad... 阅读全文
posted @ 2014-11-11 11:47 一天不进步,就是退步 阅读(8094) 评论(0) 推荐(0)
摘要: Java SE 6 provides an in-depth focus on performance, offering expanded tools for managing and monitoring applications and for diagnosing common proble... 阅读全文
posted @ 2014-11-10 19:30 一天不进步,就是退步 阅读(483) 评论(0) 推荐(0)
摘要: 原文:http://stackoverflow.com/questions/4422211/what-is-the-difference-between-facade-and-gateway-design-patternsReviewing Facade in the GoF book and th... 阅读全文
posted @ 2014-11-10 18:44 一天不进步,就是退步 阅读(673) 评论(0) 推荐(0)
摘要: This chapter describes in detail the troubleshooting tools that are available in JDK 7. In addition, the chapter lists operating-system-specific tools... 阅读全文
posted @ 2014-11-10 16:04 一天不进步,就是退步 阅读(951) 评论(0) 推荐(0)
摘要: Java没有提供任何机制来安全地终止线程,虽然Thread.stop和suspend等方法提供了这样的机制,但是存在严重的缺陷,应该避免使用这些方法。但是Java提供了中断Interruption机制,这是一种协作机制,能够使一个线程终止另一个线程的当前工作。这种协作方式是必要的,我们很少希望某个任... 阅读全文
posted @ 2014-11-10 09:31 一天不进步,就是退步 阅读(1406) 评论(0) 推荐(1)
摘要: Semaphore用于保存当前可用许可的数量。是通过共享锁实现的。根据共享锁的获取原则,Semaphore分为"公平信号量"和"非公平信号量"。"公平信号量"和"非公平信号量"的释放信号量的机制是一样的!不同的是它们获取信号量的机制:线程在尝试获取信号量许可时,对于公平信号量而言,如果当前线程不在队... 阅读全文
posted @ 2014-11-10 09:22 一天不进步,就是退步 阅读(342) 评论(0) 推荐(0)
上一页 1 ··· 164 165 166 167 168 169 170 171 172 ··· 235 下一页