Spring注解

xiaoxiao2021-02-28  108

一、value和 param区别和使用 1. value   1)类注解   @Controller     @RequestMapping("/challengeCode”) 2)方法注解 @RequestMapping(value = "/getCaSignInfo”)       或 @RequestMapping("/getCaSignInfo") 3)请求方式: http://localhost:8080/challengeCode/getCaSignInfo.do?contractNo=10 1.param 1) 类注解 @Controller     @RequestMapping("/challengeCode”) 2) 方法注解 @RequestMapping(params = "getCaSignInfo”) 3)请求方式: http://localhost:8080/challengeCode.do?getCaSignInfo&contractNo=10
转载请注明原文地址: https://www.6miu.com/read-70779.html

最新回复(0)