页面访问http://localhost:8080/hello
1.检查url是否正确
下面的是 :http://localhost:8080/hello
下面的是 : http://localhost:8080/111/hello
上面的路径对我没用,检查pom.xml ,添加thymeleaf依赖 成功访问。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>