Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"
```