parent
cc086024c2
commit
f5c2870a70
@ -1,16 +1,19 @@
|
|||||||
package com.ssm.controller;
|
package com.ssm.controller;
|
||||||
|
|
||||||
|
import com.ssm.entity.TingchequyuModel;
|
||||||
import com.ssm.entity.TingchexinxiModel;
|
import com.ssm.entity.TingchexinxiModel;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("tingchexinxi")
|
@RequestMapping("tingchexinxi")
|
||||||
public class TingchexinxiController {
|
public class TingchexinxiController {
|
||||||
@RequestMapping("add")
|
@RequestMapping("add")
|
||||||
public String test(TingchexinxiModel tingchexinxi) {
|
public ModelAndView test(TingchexinxiModel tingchexinxi){
|
||||||
System.out.println("停车信息" + tingchexinxi.toString());
|
ModelAndView mv=new ModelAndView("showTingchexinxi");
|
||||||
return "showTingchexinxi";
|
mv.addObject("tingchexinxiInfo", tingchexinxi);
|
||||||
|
return mv;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in new issue