You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Spring Boot project which uses Spring Data Neo4j. When I run the project from my IDE(Intellij) everything works fine. When I run the project from command line(java -jar ...) I get the message that my entity is not an instance of a persistable class.
I pass the basePackages to the SessionFactory:
@Bean
public SessionFactory getSessionFactory() {
return new SessionFactory(getConfiguration(), basePackages);
}
Sebastian Glahn opened DATAGRAPH-891 and commented
I have a Spring Boot project which uses Spring Data Neo4j. When I run the project from my IDE(Intellij) everything works fine. When I run the project from command line(java -jar ...) I get the message that my entity is not an instance of a persistable class.
I pass the basePackages to the SessionFactory:
And I have annotated the main class with:
The info log shows the following:
When started from Intellij:
When started from command line:
Although the debug logs shows that the ClassPathScanner is scanning the correct classes:
I have created a minimal demo project on Github to reproduce the problem: https://github.com/sglahn/spring-data-neo4j-demo
To reproduce the problem do the following: Build the jar:
Execute the jar:
Access the Controller in the browser:
The log shows:
When deployed as exploded jar the project runs fine.
Spring Boot version is 1.4.0.RC1
Affects: 4.0 GA, 4.1.1 (Hopper SR1), 4.1.2 (Hopper SR2)
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: