spring-boot-multitenancy
Samples showing how to build multitenant applications with Java and Spring Boot
File Explorer
Download Latest Version (.zip)- commit-stage.yml
- gradle-wrapper.jar
- gradle-wrapper.properties
- DocumentChatController.java
- DocumentChatService.java
- SimpleChatController.java
- DocumentInitializer.java
- HttpHeaderTenantResolver.java
- TenantResolver.java
- TenantContextHolder.java
- TenantNotFoundException.java
- TenantResolutionException.java
- PropertiesTenantDetailsService.java
- TenantDetails.java
- TenantDetailsProperties.java
- TenantDetailsService.java
- TenantContextFilter.java
- ChatServiceApplication.java
- story1.md
- story2.txt
- application.yml
- ChatServiceApplicationTests.java
- TestChatServiceApplication.java
- .editorconfig
- .gitignore
- build.gradle
- gradlew
- gradlew.bat
- settings.gradle
- gradle-wrapper.jar
- gradle-wrapper.properties
- SecurityConfig.java
- TenantNotFoundException.java
- TenantResolutionException.java
- TenantGatewayFilterFactory.java
- TenantAuthenticationEntryPoint.java
- TenantClientRegistrationRepository.java
- PropertiesTenantDetailsService.java
- TenantDetails.java
- TenantDetailsProperties.java
- TenantDetailsService.java
- EdgeServiceApplication.java
- application.yml
- logback-spring.xml
- EdgeServiceApplicationTests.java
- .editorconfig
- .gitignore
- build.gradle
- gradlew
- gradlew.bat
- settings.gradle
- gradle-wrapper.jar
- gradle-wrapper.properties
- SecurityConfig.java
- DataConfig.java
- PathConfig.java
- Instrument.java
- InstrumentController.java
- InstrumentRepository.java
- HttpHeaderTenantResolver.java
- TenantResolver.java
- TenantContextHolder.java
- TenantKeyGenerator.java
- TenantFlywayMigrationInitializer.java
- ConnectionProvider.java
- TenantIdentifierResolver.java
- TenantNotFoundException.java
- TenantResolutionException.java
- TenantAuthenticationManagerResolver.java
- PropertiesTenantDetailsService.java
- TenantDetails.java
- TenantDetailsProperties.java
- TenantDetailsService.java
- TenantContextFilter.java
- InstrumentServiceApplication.java
- V1__Creative_table.sql
- V1__Instrument_table.sql
- application.yml
- logback-spring.xml
- InstrumentServiceApplicationTests.java
- TestInstrumentServiceApplication.java
- .editorconfig
- .gitignore
- build.gradle
- gradlew
- gradlew.bat
- settings.gradle
- config.alloy
- jvm.json
- polar-http.json
- spring-boot-jdbc.json
- spring-boot.json
- prometheus-stats.json
- dashboards.yml
- datasources.yml
- grafana.ini
- README.md
- realm-config.json
- loki.yml
- prometheus.yml
- tempo.yml
- .editorconfig
- .gitignore
- .sdkmanrc
- compose.yml
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/ThomasVitale/spring-boot-multitenancy
Downloads the entire project code from GitHub to your computer.
cd spring-boot-multitenancy
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker-compose up -d
Runs the command against the services defined in the compose file.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Gradle (Java/Kotlin)
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- JDK (Java) Required to build and run Java/Kotlin projects.
- Gradle If the repo includes gradlew (Gradle Wrapper), you don't need to install Gradle separately.
./gradlew bootTestRun
Builds the project using Gradle.
./gradlew bootRun
Builds the project using Gradle.
A BUILD SUCCESSFUL message means it worked. The output is created under build/.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
