# Enable Neo4J Browser GUI in Java with embedded Neo4J

**URL:** <https://community.neo4j.com/t/enable-neo4j-browser-gui-in-java-with-embedded-neo4j/66017>\
**Category:** Browser\
**Tags:** knowledge-base\
**Created:** [January 29, 2024, 7:26am UTC](https://community.neo4j.com/t/enable-neo4j-browser-gui-in-java-with-embedded-neo4j/66017 "2024-01-29T07:26:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surendragalwa](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/surendragalwa/32/30687_2.png) [@surendragalwa](https://community.neo4j.com/u/surendragalwa)\
**Post date:** [January 29, 2024, 7:26am UTC](https://community.neo4j.com/t/enable-neo4j-browser-gui-in-java-with-embedded-neo4j/66017/1 "2024-01-29T07:26:05Z")

</div>

How to enable Neo4J browser when using embedded Neo4J with spring-boot? I have enabled the HTTP connector but the webpage returns empty response on [http://localhost:7474/browser](http://localhost:7474/browser).

Here is the configuration -

```auto
DatabaseManagementService managementService = new DatabaseManagementServiceBuilder(databaseDirectory.getCanonicalFile())
                .setConfig(GraphDatabaseSettings.default_database, "db")
                .setConfig(HttpConnector.enabled, true)
                .setConfig(BoltConnector.enabled, true)
                .build();

```

Also I see that `DatabaseManagementServiceBuilder` is deprecated, what is the new alternative?

---

<div class="post-metadata">

**Author:** ![1277036759](https://avatars.discourse-cdn.com/v4/letter/1/3d9bf3/32.png) [@1277036759](https://community.neo4j.com/u/1277036759)\
**Post date:** [August 6, 2024, 3:18am UTC](https://community.neo4j.com/t/enable-neo4j-browser-gui-in-java-with-embedded-neo4j/66017/2 "2024-08-06T03:18:30Z")

</div>

2024-08-05T16:00:00Z  
You should modify the configuration below.

```auto
DatabaseManagementService managementService = new DatabaseManagementServiceBuilder(databaseDirectory.getCanonicalFile())
        .setConfig(GraphDatabaseSettings.auth_enabled, true)
        // Bolt connector
        .setConfig(BoltConnector.enabled, true)
        .setConfig(BoltConnector.listen_address, new SocketAddress("localhost", 7687))
        // Http connector
        .setConfig(HttpConnector.enabled, true)
        .setConfig(HttpConnector.listen_address, new SocketAddress("localhost", 7474))
        .build();

```

In addition, the `pom.xml` file should introduce the following dependencies. For example:

```auto
<!-- https://mvnrepository.com/artifact/org.neo4j/neo4j -->
<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j</artifactId>
    <version>5.22.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.neo4j.client/neo4j-browser -->
<dependency>
    <groupId>org.neo4j.client</groupId>
    <artifactId>neo4j-browser</artifactId>
    <version>5.21.0</version>
</dependency>

```

You can access [http://localhost:7474/browser](http://localhost:7474/browser) to enable the Neo4j Browser GUI in Java with embedded Neo4j.
