- Download and extract Spring Tool Suite (STS).
Eclipse Neon or higher can also be used but only if Spring Tool Suite (STS) plugin is installed via Help -> Eclipse Marketplace.
- Run
mvn clean install -DskipTests
andmvn eclipse:eclipse
before importing! - Import project as *existing Maven project into STS/Eclipse.
- Run project as Spring Boot App.
- Open your browser and navigate to
localhost:8080/alfa
- Install MariaDB server >10
- Connect to MySQL/MariaDB client and run
CREATE DATABASE alfa DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
to create alfa database - Open
application.properties
and update property tospring.jpa.hibernate.ddl-auto=create
to create tables and insert initial records. - Run project as Spring Boot App. (You may change the property back to
spring.jpa.hibernate.ddl-auto=none
to start faster.)
- Database table not found error?
Make sure JPA created the table correctly! If not, you can update property spring.jpa.hibernate.ddl-auto=update
in application.properties
to make sure database is sync'ed on project startup!
- SysMapper bean not found/cannot be created?
Run mvn clean install -DskipTests
then refresh your project in Eclipse.