SpringBoot initializer created project with settings and sql for connecting to a MySQL database
This is just a repository that I use for reference, when creating Spring Boot projects with a MySQL connection. This project contains a pom file and properties file for using jpa with mysqq. It also has an sql script that can be used for creating the necessary mysql database and user.
- Create a SpringBoot project, using the SpringBoot initializer. Add the Spring Boot Web, Spring Boot JPA and MySQL Driver dependencies.
- Run the following sql commands in the -scripts/create_db_and_user.sql' script.
- Copy the content of the application.properties.
- Run the 'mvn install' command in the directory root.
- Run the application. This application does nothing, except the tests passes without failing, if everything is correctly configured.