在Controller 層使用 @RequestMapping注解,需要導入的包:spring-webmvc。
在類中需要添加:import org.springframework.web.bind.annotation.RequestMapping;
本文參考了:http://www.cnblogs.com/JavaTechLover/archive/2012/09/03/spring-controller2.html
里面有詳細的講解!
在Controller 層使用 @RequestMapping注解,需要導入的包:spring-webmvc。
在類中需要添加:import org.springframework.web.bind.annotation.RequestMapping;
本文參考了:http://www.cnblogs.com/JavaTechLover/archive/2012/09/03/spring-controller2.html
里面有詳細的講解!
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。