创建cate、first、

main
41288 4 months ago
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";
}
}

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

@ -4,9 +4,15 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>入门程序</title>
<title>showFirst!</title>
</head>
<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>
</html>
Loading…
Cancel
Save