****正确的导入依赖
在pom中导入依赖
****
org.springframework.boot
spring-boot-starter-thymeleaf
2.6.6
**这样就可以通过controller来访问到页面
@RequestMapping(“/show2”)
public String showInfo2(){
return "index";
properties中需要怎么访问
应用名称
spring.application.name=junit_demo
应用服务 WEB 访问端口
server.port=8080
spring.mvc.view.prefix=classpath:/templates/
spring.mvc.view.suffix=.html