运行Spring Boot应用程序时出错

时间:2016-08-29 06:24:13

标签: spring-boot

我有一个Spring Boot应用程序,可以在STS(Spring Tool Suite)中运行

我跟着[这] [1]

[1]:http://docs.spring.io/spring-boot/docs/current/reference/html/howto-traditional-deployment.html链接。

我收到了WhiteLabel错误:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Aug 29 11:46:52 IST 2016
There was an unexpected error (type=Not Found, status=404).
No message available

是因为我在Pivotal Server上运行它吗?

我应该使用Tomcat吗?

或者没关系?

1 个答案:

答案 0 :(得分:1)

请确保索引页面的RequestMapping及其相应方法都与main方法位于同一文件中。

相关问题