We are encountering an issue with the spring boot-up application. Could you please assist us in identifying what we have missed?
What is Java code required?
What are the configurations required in the application.properties file?
Is it dependency correct in pom.xml?
Spring boot version 3.2.4
Java 17
Vaadin 24.3.8
Neo4j-community-4.4.31-windows
Error
APPLICATION FAILED TO START
Description:
Failed to configure a DataSource: 'URL' attribute is not specified and no embedded data source could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
current use maven dependency for Neo4j in pom.xml
< dependency >
<groupId>org.springframework.boot</groupId >
<artifactId>spring-boot-starter-data-neo4j</artifactId >
< /dependency >
<dependency >
<groupId>org.springframework.data</groupId >
<artifactId >spring-data-neo4j</artifactId>
< /dependency >
application.properties setup
spring.data.neo4j.repositories.auto-index=true
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
spring.neo4j.uri=bolt://localhost:7687
spring.neo4j.authentication.username=neo4j
spring.neo4j.authentication.password=
logging.level.org.springframework.data.neo4j=info