Neo4j embedded database doesnt show the browser in a spring boot app

三世轮回 提交于 2019-12-12 03:24:01

问题


[update] Please find the config classes here : https://github.com/veeseekay/fooflix. To run, you can just do a gradle clean build java -jar build/libs/fooflix.jar

When you point to localhost:8686 - gives a 404. However, I am running this within my IDE and the browser shows up fine.

I have successfully embedded neo4j within my spring boot application. I could even bring up the webadmin/browser for neo4j using this : How to enable neo4j webadmin when using spring-data-neo4j?

However there is a weird problem which am not able to figure out. When I run this spring boot application in my IDE, am able to access the neo4j webadmin from the browser and view the graphs, however, if I build an uber jar and run it on a terminal, am not able to access the webadmin. I get a 404.

<code>
HTTP ERROR 404
Problem accessing /browser/. Reason:
    Not Found
Powered by Jetty://
</code>

looks like a path issue, but am not able to figure out why. any pointers would be of great help.

here are my gradle deps

<code>
compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework:spring-context")
compile("org.springframework:spring-tx")
compile("org.springframework.data:spring-data-neo4j:3.4.0.RELEASE")
compile("org.hibernate:hibernate-validator")
compile("javax.el:javax.el-api:2.2.4")
compile("javax.el:javax.el-api:2.2.4")
compile("org.neo4j.app:neo4j-server:2.2.5")
compile("org.neo4j.app:neo4j-server:2.2.5:static-web")
</code>

thanks

来源:https://stackoverflow.com/questions/32796570/neo4j-embedded-database-doesnt-show-the-browser-in-a-spring-boot-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!