在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删除。