Home > Back-end >  In the URL parameter is how the parameters in the controller method with the background to match or
In the URL parameter is how the parameters in the controller method with the background to match or

Time:09-21



1, a URL links'/elec/emElectricitySell/form? SellWay='+ sellWay + & amp; Ammeter. Id='+ args. Id

2, which corresponds to the processing method of controller is

@ Controller
@ RequestMapping (value="https://bbs.csdn.net/topics/${adminPath}/elec/emElectricitySell")
Public class EmElectricitySellController extends BaseController {

@ RequestMapping (value="https://bbs.csdn.net/topics/form")
Public String form (EmElectricitySell EmElectricitySell, Model Model) {

}

}

3, the two parameters sellWay, ammeter. The id is how to EmElectricitySell EmElectricitySell, Model Model, they match or a match is in the background?

CodePudding user response:

Are you going to look for SpringMVC process, path matching is through HandlerMapping, matching parameters by HandlerAdapter
  • Related