Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tiscs/spring-boot-practices
Practices of spring boot.
https://github.com/tiscs/spring-boot-practices
exposed kotlin mqtt oauth2 spring spring-boot
Last synced: about 1 month ago
JSON representation
Practices of spring boot.
- Host: GitHub
- URL: https://github.com/tiscs/spring-boot-practices
- Owner: Tiscs
- License: mit
- Created: 2018-04-26T06:49:00.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-11-22T07:45:08.000Z (about 1 month ago)
- Last Synced: 2024-11-22T08:27:27.337Z (about 1 month ago)
- Topics: exposed, kotlin, mqtt, oauth2, spring, spring-boot
- Language: Kotlin
- Homepage:
- Size: 699 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring Boot Practices
## Modules
- **sbp-build**:
Gradle plugins
- **sbp-config**:
Config files
- **sbp-users**:
Users service
- **sbp-mqtt**:
MQTT server## Docker Images
``` sh
$ docker build --build-arg SBP_MODULE=sbp-{module} .
```## Development
``` yaml
# sbp-{module}/src/main/resources/application-local.yml
spring:
datasource:
url: jdbc:postgresql://localhost:5432/${spring.application.name}?currentSchema=public
username:
password:
data:
redis:
host: localhost
config:
import:
- file:../sbp-config/
`````` sh
# https://docs.spring.io/spring-boot/3.3.3/gradle-plugin/running.html
$ ./gradlew :sbp-{module}:bootRun --args="--spring.profiles.active=dev,local --server.port=8080"
```