spring_boot_all_study/SpringBootThymeleaf/target/classes/templates/formdemo.html

22 lines
663 B
HTML
Raw Normal View History

2019-08-17 10:19:41 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>表单演示</h1>
<form th:action="@{/thymeleaf/saveformdemo}" th:object="${c}" method="POST">
<label for="firstName">产品名称:</label>
<input type="text" th:field="*{name}" value="" /><br/>
<label for="firstName">账号:</label>
<input type="text" th:field="*{account}" value="2018-03-28" /> <br/>
<label for="price">手机号码:</label>
<input type="text" th:field="*{tel}" size="10" value="198" /><br/>
<input type="submit" value="提交"/>
</form>
</body>
</html>