springCloud Eureca消费者Consumer的项目

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

版权保护,原文出处:http://www.mark-to-win.com/index.html?content=Frame/frameUrl.html&chapter=Frame/springCloud_web.html#ConsumerProject2

猜你喜欢

转载自blog.csdn.net/mark_to_win/article/details/88742836