Spring Boot JPA metamodel must not be empty! when trying to run JUnit / Integration Tests
问题 Am using Spring Boot, JUnit 4 & Mockito in a maven based project to tests my Spring Boot Microservice REST API. So, on startup, the DataInserter class loads data from owner.json and cars.json. Normally, via my REST calls, everything works, but it seems I have something wrong with setting up unit tests and integration tests. Project structure: myapi │ ├── pom.xml │ ├── src ├── main │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ └── myapi │ │ │ │ │ ├── MyApplication.java │ │ │ │ │ ├── bootstrap │ │