// will enter the index page first @RequestMapping("/") public String hello() { System.out.println("affiAAS"); return "index"; } //Click on the hyperlink of index.jsp to enter the success.jsp page @RequestMapping("/helloSpring") public String helloSpring() { System.out.println("222222222"); return "success"; }
//index.jsp <body> <a href="helloSpring">nihao </a> </body>