springbootmicroserviceswithsecurity
Spring Boot Microservices with JWT (Eureka Server, API Gateway, Auth Service, User Service and Product Service, JUnit and Integration Tests, Docker, Github Actions)
File Explorer
- api-gateway-ci-cd.yml
- auth-service-ci-cd.yml
- eureka-server-ci-cd.yml
- product-service-ci-cd.yml
- user-service-ci-cd.yml
- maven-wrapper.properties
- UserServiceClient.java
- GatewayConfig.java
- JwtAuthenticationFilter.java
- Token.java
- ApigatewayApplication.java
- application.yml
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- maven-wrapper.properties
- UserServiceClient.java
- SecurityConfig.java
- AuthController.java
- CustomError.java
- CustomBearerTokenAuthenticationFilter.java
- LoginRequest.java
- RegisterRequest.java
- TokenInvalidateRequest.java
- TokenRefreshRequest.java
- TokenResponse.java
- UserStatus.java
- UserType.java
- Token.java
- User.java
- CustomResponse.java
- BaseMapper.java
- CustomAuthenticationEntryPoint.java
- LogoutServiceImpl.java
- RefreshTokenServiceImpl.java
- RegisterServiceImpl.java
- UserLoginServiceImpl.java
- LogoutService.java
- RefreshTokenService.java
- RegisterService.java
- UserLoginService.java
- AuthserviceApplication.java
- application.yml
- AbstractBaseServiceTest.java
- AbstractRestControllerTest.java
- AuthControllerTest.java
- CustomErrorTest.java
- TokenResponseTest.java
- TokenTest.java
- UserTest.java
- CustomAuthenticationEntryPointTest.java
- LogoutServiceImplTest.java
- RefreshTokenServiceImplTest.java
- RegisterServiceImplTest.java
- UserLoginServiceImplTest.java
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- maven-wrapper.properties
- EurekaserverApplication.java
- application.yml
- EurekaserverApplicationTests.java
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- Spring Boot Microservices with JWT Example.postman_collection.json
- maven-wrapper.properties
- UserServiceClient.java
- FeignClientConfig.java
- SecurityConfig.java
- TokenConfigurationParameter.java
- ProductController.java
- GlobalExceptionHandler.java
- ProductAlreadyExistException.java
- ProductNotFoundException.java
- CustomBearerTokenAuthenticationFilter.java
- TokenClaims.java
- ConfigurationParameter.java
- JwtRecord.java
- Token.java
- UserStatus.java
- UserType.java
- CustomPagingRequest.java
- CustomPagingResponse.java
- CustomResponse.java
- BaseEntity.java
- BaseMapper.java
- BaseDomainModel.java
- CustomError.java
- CustomPage.java
- CustomPaging.java
- ProductCreateRequest.java
- ProductPagingRequest.java
- ProductUpdateRequest.java
- ProductResponse.java
- ProductEntity.java
- CustomPageToCustomPagingResponseMapper.java
- ListProductEntityToListProductMapper.java
- ProductCreateRequestToProductEntityMapper.java
- ProductEntityToProductMapper.java
- ProductToProductEntityMapper.java
- ProductToProductResponseMapper.java
- ProductUpdateRequestToProductEntityMapper.java
- Product.java
- ProductRepository.java
- CustomAuthenticationEntryPoint.java
- LocalDateTimeSerializer.java
- UsernamePasswordAuthenticationTokenDeserializer.java
- UsernamePasswordAuthenticationTokenMixin.java
- ProductCreateServiceImpl.java
- ProductDeleteServiceImpl.java
- ProductReadServiceImpl.java
- ProductUpdateServiceImpl.java
- ProductCreateService.java
- ProductDeleteService.java
- ProductReadService.java
- ProductUpdateService.java
- JwtRecordConverter.java
- KeyConverter.java
- ProductserviceApplication.java
- application.yml
- AbstractBaseServiceTest.java
- AbstractRestControllerTest.java
- AbstractTestContainerConfiguration.java
- BaseBuilder.java
- UserEntity.java
- UserEntityBuilder.java
- ProductControllerTest.java
- GlobalExceptionHandlerTest.java
- TokenTest.java
- ProductResponseTest.java
- CustomAuthenticationEntryPointTest.java
- UsernamePasswordAuthenticationTokenDeserializerTest.java
- UsernamePasswordAuthenticationTokenMixinTest.java
- ProductCreateServiceImplTest.java
- ProductDeleteServiceImplTest.java
- ProductReadServiceImplTest.java
- ProductUpdateServiceImplTest.java
- JwtRecordConverterTest.java
- KeyConverterTest.java
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- 0_login_admin.PNG
- 0_logout_admin.PNG
- 0_refresh_token_admin.PNG
- 0_register_admin.PNG
- 1_get_product_by_admin.PNG
- 2_login_user.PNG
- 2_logout_user.PNG
- 2_refresh_token_user.PNG
- 2_register_user.PNG
- 3_create_product_by_user.PNG
- 3_delete_product_by_admin.PNG
- 3_get_product_by_user.PNG
- 3_get_products_by_user.PNG
- 3_update_product_by_admin.PNG
- docker_image.PNG
- eureka_server_image.PNG
- spring_boot_microservices_jwt_implementation_main.png
- maven-wrapper.properties
- SecurityConfig.java
- TokenConfigurationParameter.java
- UserController.java
- GlobalExceptionHandler.java
- PasswordNotValidException.java
- TokenAlreadyInvalidatedException.java
- UserAlreadyExistException.java
- UserNotFoundException.java
- UserStatusNotValidException.java
- CustomBearerTokenAuthenticationFilter.java
- CustomResponse.java
- BaseEntity.java
- BaseMapper.java
- BaseDomainModel.java
- CustomError.java
- LoginRequest.java
- RegisterRequest.java
- TokenInvalidateRequest.java
- TokenRefreshRequest.java
- TokenResponse.java
- InvalidTokenEntity.java
- UserEntity.java
- ConfigurationParameter.java
- TokenClaims.java
- TokenType.java
- UserStatus.java
- UserType.java
- RegisterRequestToUserEntityMapper.java
- TokenToTokenResponseMapper.java
- UserEntityToUserMapper.java
- UserToUserEntityMapper.java
- Token.java
- User.java
- InvalidTokenRepository.java
- UserRepository.java
- CustomAuthenticationEntryPoint.java
- InvalidTokenServiceImpl.java
- LogoutServiceImpl.java
- RefreshTokenServiceImpl.java
- RegisterServiceImpl.java
- TokenServiceImpl.java
- UserLoginServiceImpl.java
- InvalidTokenService.java
- LogoutService.java
- RefreshTokenService.java
- RegisterService.java
- TokenService.java
- UserLoginService.java
- KeyConverter.java
- UserserviceApplication.java
- application.yml
- AbstractBaseServiceTest.java
- AbstractRestControllerTest.java
- AbstractTestContainerConfiguration.java
- BaseBuilder.java
- TokenBuilder.java
- UserEntityBuilder.java
- UserControllerTest.java
- GlobalExceptionHandlerTest.java
- PasswordNotValidExceptionTest.java
- TokenAlreadyInvalidatedExceptionTest.java
- UserAlreadyExistExceptionTest.java
- UserNotFoundExceptionTest.java
- UserStatusNotValidExceptionTest.java
- CustomAuthenticationEntryPointTest.java
- InvalidTokenServiceImplTest.java
- LogoutServiceImplTest.java
- RefreshTokenServiceImplTest.java
- RegisterServiceImplTest.java
- TokenServiceImplTest.java
- UserLoginServiceImplTest.java
- KeyConverterTest.java
- .gitignore
- Dockerfile
- mvnw
- mvnw.cmd
- pom.xml
- .gitignore
- docker-compose.yml
- init.sql
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Link
Example
Command Glossary
Commands referenced in this DOCs, explained below.
mvn
View Details ▼
mvn
Apache Maven: build and manage Java-based projects.
mvn compile
Compile a project:
mvn package
Compile and package the compiled code in its distributable format, such as a `jar`:
mvn package {{[-D|--define]}} skipTests
Compile and package, skipping unit tests:
// repository documentation
Was this content helpful?
(0 ratings)
