1、使用@PathVariable注解时,说明url路径采用restful风格,即http://localhost:8080/zgbj/1/2
2、@PathVariable注解也可以接受多个参数,例如public ModelAndView configAntennaIndex(@PathVariable String dmmc,@PathVariable String cdh){}
3、不要将restful风格与传统的路径格式混淆;
像http://localhost:8080/page?page=1&pageSize=10 该参数可以直接在形参中进行接收,只要参数名一样就行。
标签:http,String,8080,注意,相关,restful,localhost,PathVariable From: https://www.cnblogs.com/ReturnOfTheKing/p/17147267.html