上一页 1 ··· 162 163 164 165 166 167 168 169 170 ··· 233 下一页
摘要: 简介JAX-RS (JSR-311) 是为 Java EE 环境下的 RESTful 服务能力提供的一种规范。它能提供对传统的基于 SOAP 的 Web 服务的一种可行替代。在本文中,了解 JAX-RS 的主要组件。本文用一个例子展示了一个企业如何使用 JAX-RS 内的功能以一种 Restful ... 阅读全文
posted @ 2014-11-16 19:29 一天不进步,就是退步 阅读(453) 评论(0) 推荐(0)
摘要: 1.No suitable driver found for http://127.0.0.1:3306/test jdbc_url错误,jdbc走自己的协议。 正确的路径应该是:jdbc:mysql://127.0.0.1:3306/test。2. mysql中database、instance、... 阅读全文
posted @ 2014-11-14 17:27 一天不进步,就是退步 阅读(6328) 评论(1) 推荐(1)
摘要: 要深入理解spring mvc的工作流程,就需要先了解spring mvc的架构: 从上图可以看到 前端控制器DispatcherServlet在其中起着主导作用,理解了DispatcherServlet 就完全可以说弄清楚了spring mvc。 为了加深对spring mvc的整个工作流程的理解 阅读全文
posted @ 2014-11-14 10:39 一天不进步,就是退步 阅读(18034) 评论(0) 推荐(2)
摘要: 一、Java如何实现对存储过程的调用:A:不带输出参数的create procedure getsum @n int =0 as declare @sum int declare @i int set @sum=0 set @i=0 while @i<=@n begin set @sum=... 阅读全文
posted @ 2014-11-13 14:26 一天不进步,就是退步 阅读(475) 评论(0) 推荐(0)
摘要: StoredProcedure是一个抽象类,必须写一个子类来继承它,这个类是用来简化JDBCTemplate执行存储过程操作的。首先我们写一个实现类:package com.huaye.framework.dao;import java.sql.Types;import java.util.Hash... 阅读全文
posted @ 2014-11-12 21:51 一天不进步,就是退步 阅读(1987) 评论(0) 推荐(0)
摘要: 使用 @Repository、@Service、@Controller 和 @Component 将类标识为 BeanSpring 自 2.0 版本开始,陆续引入了一些注解用于简化 Spring 的开发。@Repository 注解便属于最先引入的一批,它用于将数据访问层 (DAO 层 ) 的类标识... 阅读全文
posted @ 2014-11-12 16:56 一天不进步,就是退步 阅读(947) 评论(0) 推荐(0)
摘要: 从上章里我们已经看到: DispatcherServlet extends FrameworkServlet FrameworkServlet extends HttpServletBean implements ApplicationContextAware 那么HttpServletBean作为 阅读全文
posted @ 2014-11-12 15:50 一天不进步,就是退步 阅读(5608) 评论(0) 推荐(0)
摘要: 前端控制器是整个MVC框架中最为核心的一块,它主要用来拦截符合要求的外部请求,并把请求分发到不同的控制器去处理,根据控制器处理后的结果,生成相应的响应发送到客户端。前端控制器既可以使用Filter实现(Struts2采用这种方式),也可以使用Servlet来实现(spring MVC框架)。 Dis 阅读全文
posted @ 2014-11-11 17:14 一天不进步,就是退步 阅读(26182) 评论(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 一天不进步,就是退步 阅读(481) 评论(0) 推荐(0)
上一页 1 ··· 162 163 164 165 166 167 168 169 170 ··· 233 下一页