dlbunker / ps-guitar-db

A Basic Spring JPA app with an H2 DB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run project too

burakuluu opened this issue · comments

Where is the main class?

When I run, mvn spring-boot:run on the folder, it fails as there is no main class to run the project.

In an another way, how can I run the project after running the tests and succeded them all?

This project is setup to run as container deployed spring app. That means you'd need to change the pom type to a WAR and deploy to something like Tomcat. You could however, add your own main class and setup the Spring context manually (similar to what Spring Boot does) or you could take most of the code and port it to a proper Spring Boot app if you want to run stand alone.