Spring Framework 1.2.2 Reference170 13.7.1. Dependencies ..... 170 13.7.2. Configuration ..... 170 13.7.3. Populating the ModelAndView ..... 172 13.7.4. Working with Sub-Reports ..... 173 13.7.5. Configuring Exporter Parameters public void setCruncher(Cruncher cruncher) { this.cruncher = cruncher; } protected ModelAndView handleRequestInternal( HttpServletRequest request, HttpServletResponse response) Crunching c and d = " + cruncher.concatenate("c", "d")); return new ModelAndView("test"); } } } For this auto-mapping to work, we need to add the following0 码力 | 269 页 | 1.41 MB | 2 年前3
Spring Framework 1.2.0 Reference156 13.7.1. Dependencies ..... 156 13.7.2. Configuration ..... 157 13.7.3. Populating the ModelAndView ..... 158 13.7.4. Working with Sub-Reports ..... 159 13.7.5. Configuring Exporter Parameters cruncher; public void setCruncher(Cruncher cruncher) { this.cruncher = cruncher; } protected ModelAndView handleRequestInternal( HttpServletRequest arg0, HttpServletResponse arg1) throws Exception Crunching c and d = " + cruncher.concatenate("c", "d")); return new ModelAndView("test"); } } For this auto-mapping to work, we need to add the following to the relevant0 码力 | 243 页 | 1.29 MB | 2 年前3
Spring Framework 1.1.5 Reference152 13.7.1. Dependencies ..... 152 13.7.2. Configuration ..... 153 13.7.3. Populating the ModelAndView ..... 154 13.7.4. Working with Sub-Reports ..... 155 13.7.5. Configuring Exporter Parameters cruncher; public void setCruncher(Cruncher cruncher) { this.cruncher = cruncher; } protected ModelAndView handleRequestInternal( HttpServletRequest arg0, HttpServletResponse arg1) throws Exception Crunching c and d = " + cruncher.concatenate("c", "d")); return new ModelAndView("test"); } } For this auto-mapping to work, we need to add the following to the relevant0 码力 | 223 页 | 1.22 MB | 2 年前3
Spring MVC 4.2.4 RELEASE 中文文档Servlet默认容器错误页面的定制化 Web安全 “约定优于配置”的支持 控制器类名-处理器映射ControllerClassNameHandlerMapping模型ModelMap(ModelAndView) 视图-请求与视图名的映射 HTTP缓存支持 HTTP缓存支持 HTTP请求头Cache-Control 对静态资源的HTTP缓存支持 在控制器中设置Cache-Control、ETag 可以作为被它们注解的方法参数。在这种情况下,使用 java.util.Optional 与 required=false 的作用是相同的。 支持的方法返回类型 以下是handler方法允许的所有返回类型: ModelAndView 对象,其中model隐含填充了命令对象,以及注解了 @ModelAttribute 字段的存取器被调用所返回的值。 Model 对象,其中视图名称默认由 RequestToViewNameTranslator 使用ViewResolver接口解析视图 正如在21.3 控制器的实现一节中所讨论的,Spring MVC中所有控制器的处理器方法都必须返回一个逻辑视图的名字,无论是显式返回(比如返回一个 String 、 View 或者 ModelAndView )还是隐式返回(比如基于约定的返回)。Spring中的视图由一个视图名标识,并由视图解析器来渲染。 Spring有非常多内置的视图解析器。下表列出了大部分,表后也给出了一些例子。 表210 码力 | 163 页 | 2.28 MB | 3 月前3
Spring Framework 2.5.1 Reference11.1. The Controller-ControllerClassNameHandlerMapping ..... 345 13.11.2. The Model-ModelMap (ModelAndView) ..... 346 13.11.3. The View-RequestToViewNameTranslator ..... 348 13.12. Annotation-based 371 14.7.1. Dependencies ..... 372 14.7.2. Configuration ..... 372 14.7.3. Populating the ModelAndView ..... 374 14.7.4. Working with Sub-Reports ..... 375 14.7.5. Configuring Exporter Parameters on the amount of XML configuration that is required to setup handler mappings, view resolvers, ModelAndView instances, etc. This is a great boon with regards to rapid prototyping, and can also lend a degree0 码力 | 583 页 | 4.27 MB | 2 年前3
Spring Framework 2.5.0 ReferenceThe Controller - ControllerClassNameHandlerMapping ..... 342 13.11.2. The Model - ModelMap (ModelAndView) ..... 343 13.11.3. The View - RequestToViewNameTranslator ..... 345 13.12. Annotation-based 368 14.7.1. Dependencies ..... 369 14.7.2. Configuration ..... 369 14.7.3. Populating the ModelAndView ..... 371 14.7.4. Working with Sub-Reports ..... 372 14.7.5. Configuring Exporter Parameters on the amount of XML configuration that is required to setup handler mappings, view resolvers, ModelAndView instances, etc. This is a great boon with regards to rapid prototyping, and can also lend a degree0 码力 | 575 页 | 4.22 MB | 2 年前3
Spring Framework 2.0.8 Reference1. The Controller - ControllerClassNameHandlerMapping ..... 287 13.11.2. The Model - ModelMap (ModelAndView) ..... 288 13.11.3. The View - RequestToViewNameTranslator ..... 289 13.12. Further Resources 308 14.7.1. Dependencies ..... 308 14.7.2. Configuration ..... 308 14.7.3. Populating the ModelAndView ..... 310 14.7.4. Working with Sub-Reports ..... 311 14.7.5. Configuring Exporter Parameters on the amount of XML configuration that is required to setup handler mappings, view resolvers, ModelAndView instances, etc. This is a great boon with regards to rapid prototyping, and can also lend a degree0 码力 | 502 页 | 3.61 MB | 2 年前3
Spring Framework 2.0.4 ReferenceThe Controller - ControllerClassNameHandlerMapping ..... 285 13.11.2. The Model - ModelMap (ModelAndView) ..... 286 13.11.3. The View - RequestToViewNameTranslator ..... 287 13.12. Further Resources 306 14.7.1. Dependencies ..... 306 14.7.2. Configuration ..... 306 14.7.3. Populating the ModelAndView ..... 308 14.7.4. Working with Sub-Reports ..... 309 14.7.5. Configuring Exporter Parameters on the amount of XML configuration that is required to setup handler mappings, view resolvers, ModelAndView instances, etc. This is a great boon with regards to rapid prototyping, and can also lend a degree0 码力 | 500 页 | 3.60 MB | 2 年前3
Spring Framework 2.0.1 ReferenceThe Controller - ControllerClassNameHandlerMapping ..... 273 13.11.2. The Model - ModelMap (ModelAndView) ..... 274 13.11.3. The View - RequestToViewNameTranslator ..... 275 13.12. Further Resources 294 14.7.1. Dependencies ..... 294 14.7.2. Configuration ..... 294 14.7.3. Populating the ModelAndView ..... 296 14.7.4. Working with Sub-Reports ..... 297 14.7.5. Configuring Exporter Parameters on the amount of XML configuration that is required to setup handler mappings, view resolvers, ModelAndView instances, etc. This is a great boon with regards to rapid prototyping, and can also lend a degree0 码力 | 496 页 | 3.55 MB | 2 年前3
Spring Framework 2.0.6 Reference1. The Controller - ControllerClassNameHandlerMapping ..... 284 13.11.2. The Model - ModelMap (ModelAndView) ..... 285 13.11.3. The View - RequestToViewNameTranslator ..... 286 13.12. Further Resources 305 14.7.1. Dependencies ..... 305 14.7.2. Configuration ..... 305 14.7.3. Populating the ModelAndView ..... 307 14.7.4. Working with Sub-Reports ..... 308 14.7.5. Configuring Exporter Parameters on the amount of XML configuration that is required to setup handler mappings, view resolvers, ModelAndView instances, etc. This is a great boon with regards to rapid prototyping, and can also lend a degree0 码力 | 499 页 | 3.60 MB | 2 年前3
共 264 条
- 1
- 2
- 3
- 4
- 5
- 6
- 27
相关搜索词
Dependency InjectionBeanFactoryDispatcherServletDataSourceUtilsModelAndViewJmsTemplateSpring FrameworkSpring MVC@Controller@RequestMapping视图解析器IoC容器事务管理AOP新功能Web MVC框架ORM测试Spring Framework 2.0bean scopesAspect Oriented Programming (AOP)declarative transaction managementJPA abstraction layerXML SchemaIoC containerJPAdynamic language support













