首页 文章

spring-boot-starter-web和spring-boot-starter-data-elasticsearch白标错误页面

提问于
浏览
0

我正在尝试使用spring-boot-starter-web和spring-boot-starter-data-elasticsearch,当我尝试呈现静态Swagger html页面时,我有以下内容:


Whitelabel Error Page

此应用程序没有/ error的显式映射,因此您将此视为回退 .

Sun Nov 02 17:44:17 GMT 2014

出现意外错误(type = Not Found,status = 404) .

如何才能获取正常的索引页面?当我将compile(“org.springframework.boot:spring-boot-starter-data-elasticsearch”)添加到我的依赖项时,显示了静态html页面停止 .

我从简单的spring-boot-sample-web-static开始,直到添加了spring-boot-starter-data-elasticsearch

谢谢 . 奥斯卡

1 回答

  • 0

    嗨我发现使用命令时发生错误的工作 - gradle bootRun 运行执行代码但如果使用如果使用命令 - gradle run 这一切正常,打包的jar运行没有问题 .

相关问题