Skip to content

A sample Java project to test ACL concept and utilize reactive REST services

Notifications You must be signed in to change notification settings

grenader/reactive-acl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reactive-acl

A sample Java project to test ACL concept and utilize reactive REST services

Run a docker container with MongoDb

docker run -d -p 27017-27019:27017-27019 --name acl-mongo mongo

Cloud Config Server

Config Server

A cloud-config server application URL is defined in application.yaml

Current value:

spring:
  config:
    import: optional:configserver:http://localhost:8899/

Config server repo

Our config server is loaded configuration from the following repo: https://github.com/grenader/cloud-config-repo.git

The config server has the following configuration:

# Github URL:
spring.cloud.config.server.git.uri=https://github.com/grenader/cloud-config-repo.git

The application has several test URL to see configuration values coming from GitHub:

Refresh configuration

There is a way to refresh configuration properties loaded to the application. It's based on Spring Actuator POST should be sent to the following URL:

POST http://localhost:8080/actuator/refresh

The following section should be added to application.yaml file to enable 'refresh' end-point:

management:
  endpoints:
    web:
      exposure:
        include: "info,health,refresh"

Test containers.

Test docker container are used in DB tests. Here is a good article of how to configure them: https://www.baeldung.com/spring-boot-testcontainers-integration-test

About

A sample Java project to test ACL concept and utilize reactive REST services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages