https://github.com/hibuz/spring-boot-skeleton
🌱SpringBoot 3.0 Gradle Skeleton Project
https://github.com/hibuz/spring-boot-skeleton
Last synced: 7 months ago
JSON representation
🌱SpringBoot 3.0 Gradle Skeleton Project
- Host: GitHub
- URL: https://github.com/hibuz/spring-boot-skeleton
- Owner: hibuz
- Created: 2022-12-18T09:36:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T21:59:24.000Z (over 1 year ago)
- Last Synced: 2025-01-15T08:08:39.237Z (9 months ago)
- Language: Java
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌱 Spring Boot 3.0 Skeleton Project
## Step 1. Create Initial Project

> [Project URL](https://start.spring.io/#!type=gradle-project&language=java&platformVersion=3.2.4&packaging=jar&jvmVersion=17&groupId=com.hibuz&artifactId=account&name=spring-boot-skeleton&description=Demo%20project%20for%20Spring%20Boot&packageName=com.hibuz.account&dependencies=native,lombok,actuator,devtools,web,security,data-jpa,h2,validation,restdocs)```groovy
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.springframework.security:spring-security-test'
}
```## Building for production
### Packaging as jar
To build the final jar and optimize the example application for production, run:
```
./gradlew clean bootJar
```To ensure everything worked, run:
```
java -jar build/libs/*.jar
```Then navigate to followings below in your browser.
- http://localhost:8080/h2-console
- http://localhost:8080/swagger-ui/index.html## References
- [GitCommitEmoji.md](https://gist.github.com/parmentf/035de27d6ed1dce0b36a)