一、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