javax.servlet.jsp.PageContext cannot be resolved to a type javax.servlet.jsp.JspException cannot be resolved to a type 解决这个异常需要加入:jsp-api.jar在tomcat安装目录的libs中有. 同样如果servlet异常需要加入servlet-api.jar tomcat也有的.
说明: 例子就不举了,还是直接进入主题,本文主要是以SpringMVC的Controller接口为入点,来分析SpringMVC中C的具体实现和处理过程. 1.Controller接口 public interface Controller { /** * Process the request and return a ModelAndView object which the DispatcherServlet * will render. A {@code null} return val
l 泛型 l 注解 l Servlet3.0 l 动态代理 l 类加载器 泛型 1 回顾泛型类 泛型类:具有一个或多个泛型变量的类被称之为泛型类. public class A<T> { private T t; public A(T t) { this.t = t; } public T get() { return t; } } 2 泛型方法 泛型方法的特点: l 方法的参数中会使用泛型变量: l 方法的返回值中会使用泛型变量. public <T> T get(T[] ts)