摘要:
卸载ADT的方法,方法如下(我的Eclipse版本为3.5):1、选择 Help > Install New Software;2、在"Details" 面板中, 点击"What is already installed?" 链接;3、在Eclipse Installation Details 对话框中,选择"Android DDMS"和"Android Development Tools" ,然后点击Uninstall;4、在下一个窗口中,确认要删除的ADT,然后点击Finish进行删除;5、重启Eclip 阅读全文
摘要:
A、@SessionAttributesorg.springframework.web.bind.annotation.SessionAttributespublic @interface SessionAttributesAnnotation that indicates the session attributes that a specific handler uses. This will typically list the names of model attributes which should be transparently stored in the session or 阅读全文
摘要:
@ExceptionHandlerorg.springframework.web.bind.annotation.ExceptionHandlerpublic @interface ExceptionHandlerAnnotation for handling exceptions in specific handler classes and/or handler methods. Provides consistent style between Servlet and Portlet environments, with the semantics adapting to the con 阅读全文
摘要:
@InitBinderorg.springframework.web.bind.annotation.InitBinderpublic @interface InitBinderAnnotation that identifies methods which initialize the WebDataBinder which will be used for populating command and form object arguments of annotated handler methods.由这个注释标识的方法,它初始化WebDataBinder,这个WebDataBinder 阅读全文
摘要:
A、@ModelAttributeAnnotation that binds a method parameter or method return value to a named model attribute, exposed to a web view. Supported for RequestMapping annotated handler classes.在被@RequestMapping注释的处理器类中,这个注释可以绑定一个方法参数或绑定一个方法的返回值到一个命名的模型属性,提供给一个视图。Can be used to expose command objects to a 阅读全文
摘要:
下列参数一般都和@RequestMapping配合使用。A、@CookieValueorg.springframework.web.bind.annotation.CookieValuepublic @interface CookieValueAnnotation which indicates that a method parameter should be bound to an HTTP cookie. Supported for annotated handler methods in Servlet and Portlet environments.这个注释表示一个方法参数绑定到一 阅读全文
摘要:
A、@RequestMappingorg.springframework.web.bind.annotation.RequestMappingAnnotation for mapping web requests onto specific handler classes and/or handler methods. Provides consistent style between Servlet and Portlet environments, with the semantics adapting to the concrete environment.@RequestMapping 阅读全文
摘要:
基于注释的控制器配置需要Java 5以上的版本支持。这种注释支持servlet MVC和Portlet MVC。通过这种方式实现的控制器不需要继承特定的基础类,或实现特定的接口。A、Dispatcher配置文件DispatcherServlet和DispatcherPortlet都默认支持注释配置控制器。以DispatcherServlet为例,它默认支持实现HandlerMapping接口的DefaultAnnotationHandlerMapping和实现HandlerAdapter接口的AnnotationMethodHandlerAdapter来支持注释配置控制器。所有我们无需在Dis 阅读全文
摘要:
URLPath匹配原则路 径匹配原则(Path Matching) Spring MVC中的路径匹配要比标准的web.xml要灵活的多。默认的策略实现了 org.springframework.util.AntPathMatcher,就像名字提示的那样,路径模式是使用了Apache Ant的样式路径,Apache Ant样式的路径有三种通配符匹配方法(在下面的表格中列出)这些可以组合出很多种灵活的路径模式Table Ant Wildcard CharactersWildcardDescription?匹配任何单字符*匹配0或者任意数量的字符**匹配0或者更多的目录Table Example A 阅读全文
摘要:
先让我们来看一段摘自《Spring 2.5 Reference 中文版》(http://www.redsaga.com/spring_ref/2.5/spring-reference.pdf)的一段关于FileUpload的开场描述: "Spring支持web应用中的分段文件上传。这种支持是由即插即用的MultipartResolver来实现。这些解析器都定义在org.springframework.web.multipart包里。Sprig提供了现成的MultipartResolver可以支持Commons FileUpload(http://jakarta.apache.org/ 阅读全文
摘要:
Since I spent a lot of time on this issue, I thought I'd share my solution. Since spring 3.0.4, there is a configuration parameter that is called<mvc:resources/>(more about that on thereference documentation website) which can be used to serve static resources while still using the Dispatc 阅读全文