SpringBootScaffold
is a scaffold for Spring Boot project. It contains basic configurations and common used components.
- Spring Boot:
3.1.0
- Spring JPA
- Spring Web
- Spring Test
- Spring Doc (Swagger):
2.3.0
- Lombok:
1.18.30
- MySQL Connector:
8.0.27
- Mapstruct:
1.5.5.Final
- Make sure your IDEA IDE setting to JDK 17.
- Create a MySQL database named
springboot_scaffold
. - Change MySQL connection string in
application.yml
, or add environment variables. Default MySQL configuration is:- host:
localhost
- port:
3306
- database:
springboot_scaffold
- username:
root
- password:
12345678
- host:
- Run
MainApplication.java
to start the server. - Open
http://localhost:8080/swagger-ui/index.html
to see the swagger doc.
java --version # make sure your java version is 17
./gradlew clean build
java -jar build/libs/scaffold-0.0.1.jar