Open renielcanlas opened 3 years ago
Projects generated with the archetype include profiles for H2, postgres and mysql. You can use the H2 one, as it requires no additional configuration:
mvn spring-boot:run -P h2,development
Afterwards it will be accessible at http://localhost:8080/
All this is as said in the readme. If it doesn't work I'll need more details as how you are running the project.
Also, it is better adding issues to the archetype project: https://github.com/Bernardo-MG/spring-mvc-angular-maven-archetype
I've had time to check the archetypes again and found out the docs were wrong. They are missing the Spring profile properties.
Try this command:
mvn spring-boot:run -P h2,development -Dspring.profiles.active=h2
I've updated the documentation on a new version of the archetype.
Receiving this log `Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource 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). `