SpringMVC中@RequestMapping注解介绍
1、@RequestMapping可以修饰在方法上。@RequestMapping("/helloworld") public String hello() { System.out.println("hello world"); return "success"; }

3、这个时候请求的地址是java类的@RequestMapping加上方法的@RequestMapping。也就是说:/springmvc/helloworld

5、@RequestMapping不仅可以修饰方法,还可以修改类。
