The use of javaee springMVC Map ModelMap ModelAndView el and jstl

pom dependencies <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>org.example</groupId> <artifactId>TestSpringMVC3</artifactId> <version>1.0-SNAPSHOT</version> <packaging>war</packaging> <name>TestSpringMVC3 Maven Webapp</name> <!– FIXME change it to the project’s website –> <url>http://www.example.com</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.7</maven.compiler.source> <maven.compiler.target>1.7</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>test</scope> </dependency> <!– Spring –> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.3.18.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>4.3.18.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> […]

4. Spring MVC front-end and back-end data interaction (Controller, RequestMapping, RequestBody, RequestParam, ModelAndView, etc.)

Table of Contents 1. Basic introduction to Spring MVC 2. Spring MVC basic operation configuration and operation process 3. Spring MVC view resolver 4. Spring MVC front-end and back-end data interaction (Controller, RequestMapping, RequestBody, RequestParam, ModelAndView, etc.) 5. Spring ResponseEntity object details and source code analysis 6. Spring MVC RESTful style 7. HTTP request method […]

[SpringMVC] SpringMVC method, sharing data to scope objects (ModelAndView, Model, map, ModelMap)

Personal brief introduction: A rising star creator in the Java field; Alibaba cloud technology blogger, star blogger, expert blogger; on the way of Java learning, recording the learning process~ Personal homepage: .29.’s blog Learning Community: Go in and take a stroll~ Sharing data to domain objects 1. Use native Servlet API 2. Use ModelAndView 3. […]