<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>learn Resources</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<div style="text-align: center;margin:0 auto;width: 1000px; ">
    <h1>Spring boot</h1>
    <table width="100%" border="1" cellspacing="1" cellpadding="0">
        <tr>
            <td>编号</td>
            <td>名称</td>
            <td>描述</td>

        </tr>
        <% out.println("mc-details"); %>
        <c:forEach var="emp" items="${list}">
            <tr>
                <td th:text="${emp.tName}">${emp.id}</td>
                <td th:text="${emp}">${emp.tName}</td>
                <td th:text="${emp}">${emp.tDesc}</td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>