在Controller 层使用 @RequestMapping注解,需要导入的包:spring-webmvc。

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

 

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

里面有详细的讲解!

相关文章:

  • 2022-12-23
  • 2021-05-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-09-16
相关资源
相似解决方案