2.消费者的项目:
index.html:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
index1
<a href="/hello.do">test jump 跳转</a><br>
<a href="/hello1.do">test DB数据库</a><br>
<a href="/getObj.do">test 获取数据库对象</a><br>
<hr>
马克-to-win@马克java社区此表测试post
<form action="insertObj" method="post">
姓名:<input type="text" name="markname" placeholder="用户名" /><br />
<button type="submit" >提交</button>
</form>
<hr>
马克-to-win@马克java社区此表测试put(The other HTTP methods (i.e. other than GET and POST) are not available in HTML 4.1 or XHTML 1.0.
也就是说实际上HTML5以前,FORM都仅支持GET和POST。所以用post模拟put)
<form action="updateObj" method="post">
姓名:<input type="text" name="markname" placeholder="用户名" /><br />
<button type="submit" >提交</button>
</form>
<hr>
马克-to-win@马克java社区此表测试delete
<form action="deleteObj" method="post">
<button type="submit" >提交</button>
</form>
上传
<form method="POST" action="/upload" enctype="multipart/form-data">
<input type="file" name="file" /><br/><br/>
<input type="submit" value="Submit" />
</form>
更多请看下节:http://www.mark-to-win.com/tutorial/frame_springCloud_ConsumerProject2.html
springCloud Eureca消费者Consumer的项目
最新推荐文章于 2024-02-04 23:59:36 发布
