问题
[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