You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
763 B
23 lines
763 B
7 years ago
|
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<Param> {
|
||
|
@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);
|
||
|
}
|
||
|
}
|