前端显示

This commit is contained in:
Diamond 2024-06-22 23:54:16 +08:00
parent 9f441bb779
commit 0276c02f46
2 changed files with 25 additions and 1 deletions

10
pom.xml
View File

@ -45,7 +45,15 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
</dependencies>
<build>
<plugins>

View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html xmln="http//www.thymeleaf.org" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<p>静态信息显示实例</p>
<table>
<tr>
<td>消息:</td>
<td>th:text="${messageCount}"</td>
</tr>
</table>
</body>
</html>