- This is a template Repository to create a new Spring Boot REST Service
- Things to update:
- Refactor the package name from
spring.service.skeleton.app
to as desired- keep it 3 words if possible, eg:
xxx.xxx.xxx.app
- keep it 3 words if possible, eg:
settings.gradle
rootProject.name
build.gradle
- Add/Remove dependencies as necessary
springVersion
, and version in buildscript and plugin as necessaryarchiveFileName
inbootJar
mainClass
inapplication
- gradle wrapper version as necessary
application.yml
as necessary- at least need to replace
spring-service-skeleton
with application name
- at least need to replace
logback.xml
as necessary- avoid LOG_FILE as much as possible, prefer console logging
- replace
spring-service-skeleton
with application name inLOG_PATTERN
andLOG_FILE
- remove
traceId
andspanId
ifspring-cloud-started-sleuth
is not used inbuild.gradle
Dockerfile
as necessary- esp
JAR_FILE
,COPY
and environment variables inENTRYPOINT
- esp
- GCP configurations, in
gcp
folder as necessary- esp
app-credentials.yaml
andapp-credentials_DUMMY.yaml
- esp
README.md
i.e. this file to add the program's readme.gitignore
if necessary
- Refactor the package name from
- Things to add:
DatasourceConfig
if using MONGO/JPA/JDBC- See:
pets-database-layer
for MongoDB example - See:
health-data-java
for JPA example - For JDBC, only need to set
Datasource
from above examples
- See:
RestTemplateConfig
if usingRestTemplate
- See:
pets-service-layer
for example
- See:
SwaggerConfig
if using SwaggerUI- See:
pets-service-layer
/pets-database-layer
for example - Also, will have to update
SecurityConfig
to allow SwaggerUI
- See:
- Things to remove:
- If not using cache
- Remove
CacheConfig
from config package - Remove
spring-boot-starter-cache
dependency frombuild.gradle
- Remove
- GitHub workflows
- Remove
dependabot.yml
in the new app until automated merge is figured out
- Remove
- If not using cache
-
Notifications
You must be signed in to change notification settings - Fork 0
bibekaryal86/app-skeleton-springboot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Template Repository to create new Spring Boot REST Service
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published