HTTP://WWW.CNBLOGS.COM/LESKANG/P/5445698.HTMLSPRINGMVC annotation @controller () @Autowired//spring provides annotations, assembled by type @ Modelatrrbuter ("/url")//is executed before the Controller method executes. @requestMapping (value= "", method= "", params{"Name=aa", "pas"}, must carry the parameters, and name= "AA", the PAS value does not specify these two parameters when the method executes @requestparam ( "Petid"),//Quite Request.getparameter ("Petid") consumes= "requested commit content type", produces= "returned content type") @ResponseBody Writes the returned object to the body of the response object @pathvariable maps the variable parameter in the URL template to the method parameter @Service () the IMP implementation class uses the @respority ()//daoimpl annotation @component/ /general annotations Try not to use http://jinnianshilongnian.iteye.com/blog/1594806
Springmvc Annotated Band Example