This is a sample page created with Spring Boot.
``` 3. 在Spring Boot应用程序中创建一个控制器类,例如`PageController`,并添加一个处理请求的方法,例如`showPage()`。在这个方法中,使用`@GetMapping`注解指定处理GET请求,并返回HTML文件名(不包含扩展名)作为视图名称,例如: ```java @Controller public class PageController { @GetMapping("/") public String showPage() { return "index"; } } ``` 4. 启动应用程序,并访问`http://localhost:8080/`,就可以看到刚才创建的网页了。 需要注意的是,Spring Boot默认使用Thymeleaf模板引擎来渲染HTML页面,因此在HTML文件中可以使用Thymeleaf的语法。如果不想使用Thymeleaf,也可以使用其他模板引擎,例如FreeMarker、Velocity等,只需要在`pom.xml`文件中添加对应的依赖即可。