cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Embedded instance (browser access and configuration)

magaton
Node Link

Hello, I am using spring-data-neo4j on my project with embedded database. Neo4j version is 3.5.17, spring-boot 2.2.6.RELEASE.
Here is my application.yml:

spring:  
  application:
    name: my-app
  data:
    neo4j:
      embedded:
        enabled: true
      username: neo4j
      password: secret
      uri: file:///tmp/${spring.application.name}/neo4j/data/databases/graph.db

And pom.xml:

          <dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-neo4j</artifactId>
		</dependency>
		<dependency>
		    <groupId>org.neo4j</groupId>
		    <artifactId>neo4j-ogm-embedded-driver</artifactId>
		</dependency>
		<dependency>
		    <groupId>org.neo4j</groupId>
		    <artifactId>neo4j-bolt</artifactId>
		    <version>${neo4j.version}</version>
		</dependency>
		<dependency>
		    <groupId>org.neo4j</groupId>
		    <artifactId>neo4j</artifactId>
		    <scope>runtime</scope>
		    <version>${neo4j.version}</version>
		</dependency>

Two questions:
how can I look at my graph via browser, in other words, how can I say to my embedded neo4j instance to expose bolt?
If I want to pass neo4j.conf (I need to increase page size, heap etc), how can I do that using starndard spring-boot property sources?

1 REPLY 1

To the Q#1: I'm working with the version 4.1, Bolt connector can be added to the embedded database. official doc here But I don't know if it was implemented for version 3.5 .
To the Q#2: Again, with version 4.1, neo4j.conf file can be passed to DatabaseManagementService instance with DatabaseManagementServiceBuilder().loadPropertiesFromFile("/path/to/neo4j.conf"), I guess those settings would be acceptable, or you can try the setConfig() method of the builder class. explanation here