Closed ulitol97 closed 6 years ago
To use h2 you need to add the following dependency:
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
You will also need to make the IncidentsRepository extend CrusRepository instead of MongoRepository, and remove the mongo configuration from the properties file. I think that will be enough for it to work.
OK, shouldn't take long, no problem 👍
Fixes #4 I struggled quite a lot testing the controller and just did what I though was better, so tests may be still lacking :/