创建cate、first、

main
41288 4 months ago
parent c8fc88b242
commit df031b2513

@ -1,13 +1,18 @@
package com.ssm.controller; package com.ssm.controller;
import com.ssm.entity.Cate;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
@Controller @Controller
@RequestMapping("testFC")
public class FirstController { public class FirstController {
@RequestMapping("hello") @RequestMapping("object")
public String hello() { public String hello(Cate cate) {
System.out.println("1111"); 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"; return "showFirst";
} }
} }

@ -4,8 +4,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>展示入门程序信息</title> <title>show Get Data!</title>
</head>
<body> <body>
Success! Success!
</body> </body>

@ -4,9 +4,15 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>入门程序</title> <title>showFirst!</title>
</head> </head>
<body> <body>
<a href="hello">hello world</a> <form action="testFC/object" method="post">
设备类型:<input type="text" name="cateid"><br>
类型名称:<input type="text" name="catename"><br>
创建日期:<input type="text" name="addtime"><br>
备注:<input type="text" name="memo">
<input type="submit" value="提交">
</form>
</body> </body>
</html> </html>
Loading…
Cancel
Save