package org.pqh.controller; import org.pqh.model.Param; import org.pqh.util.DBAction; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; /** * Created by reborn on 2017/8/3. */ @Controller public class ParamController extends AbstractController { @Override @ResponseBody @RequestMapping(value = "/param/{action}",produces = "text/html;charset=UTF-8") public String curd(@PathVariable DBAction action,@ModelAttribute Param formModel) { return super.curd(action, formModel); } }