springMvc框架中引入@GetMapping注解

pom.xml文件加上

<!-- getmapping注解 -->
		<dependency>
		  <groupId>org.springframework</groupId>
		  <artifactId>spring-web</artifactId>
		  <version>5.0.5.RELEASE</version>
		</dependency>
		<!--spring-webmvc-->
		<dependency>
		  <groupId>org.springframework</groupId>
		  <artifactId>spring-webmvc</artifactId>
		  <version>5.0.5.RELEASE</version>
		</dependency>
		
		<dependency>
		  <groupId>javax.servlet</groupId>
		  <artifactId>javax.servlet-api</artifactId>
		  <version>3.0.1</version>
		  <scope>provided</scope>
		</dependency>

  

posted @ 2021-03-10 17:16  红尘沙漏  阅读(1728)  评论(0编辑  收藏  举报