SpringMVC
1.SpringMVC请求流程图

SpringMVC案列
1.导入依赖
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.1.5.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>5.1.5.RELEASE</version> </dependency>
2.创建Controller类

3.大配置

4.Web.xml

5.index.jsp页面

6.目录

注解版
1.Controller

2.大配置

开启图片支持



浙公网安备 33010602011771号