parent
c8fc88b242
commit
df031b2513
@ -1,13 +1,18 @@
|
||||
package com.ssm.controller;
|
||||
|
||||
import com.ssm.entity.Cate;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("testFC")
|
||||
public class FirstController {
|
||||
@RequestMapping("hello")
|
||||
public String hello() {
|
||||
System.out.println("1111");
|
||||
@RequestMapping("object")
|
||||
public String hello(Cate cate) {
|
||||
System.out.println("cateid:"+cate.getCateid());
|
||||
System.out.println("catename:"+cate.getCatename());
|
||||
System.out.println("addtime:"+cate.getAddtime());
|
||||
System.out.println("memo:"+cate.getMemo());
|
||||
return "showFirst";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue