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>

  

springMvc框架中引入@GetMapping注解

上一篇:Python-元素定位API之XPATH


下一篇:java集合Collection常用方法详解