页面访问http://localhost:8080/hello

springboot项目浏览器报错:Whitelabel Error Page --There was an unexpected error (type=Not Found, status=404)

 

 

 

1.检查url是否正确

下面的是 :http://localhost:8080/hello

 

springboot项目浏览器报错:Whitelabel Error Page --There was an unexpected error (type=Not Found, status=404)

 

 

 

下面的是 : http://localhost:8080/111/hello

springboot项目浏览器报错:Whitelabel Error Page --There was an unexpected error (type=Not Found, status=404)

 

 

上面的路径对我没用,检查pom.xml ,添加thymeleaf依赖 成功访问。

 

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

相关文章:

  • 2021-05-16
  • 2022-01-06
  • 2022-12-23
  • 2021-08-12
  • 2021-07-21
  • 2021-04-07
  • 2021-04-07
猜你喜欢
  • 2021-09-24
  • 2021-09-12
  • 2021-11-17
  • 2021-04-25
  • 2021-11-17
  • 2021-12-14
相关资源
相似解决方案