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