Category: SSI/SSH

Summary of 6 basic usages of @RequestMapping in Spring MVC 0

Summary of 6 basic usages of @RequestMapping in Spring MVC

Hits: 0Summarize the usage of @RequestMapping in  spring [mvc .] 1) The most basic, applied at the method level, for example:  Java code   @RequestMapping(value=”/departments”)   public String simplePattern(){   System.out.println(“simplePattern method was called”);   return “someResult”;   }   When visiting http://localhost/xxxx/departments, the simplePattern method...