1. 程式人生 > >使用 @RequestMapping 註解,需要導入的包:spring-webmvc

使用 @RequestMapping 註解,需要導入的包:spring-webmvc

control org ech spring ron www ring ota http

在Controller 層使用 @RequestMapping註解,需要導入的包:spring-webmvc。

在類中需要添加:import org.springframework.web.bind.annotation.RequestMapping;

本文參考了:http://www.cnblogs.com/JavaTechLover/archive/2012/09/03/spring-controller2.html

裏面有詳細的講解!

使用 @RequestMapping 註解,需要導入的包:spring-webmvc