Skip to content

nolili/SpringBootFeatureFlagExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootFeatureFlagExample

How to use

# Use new feature
$ ./mvnw spring-boot:run -Dcom.noritakakamiya.feature-flag=true -Dspring-boot.run.fork=false
$ curl http://localhost:8080/new-feature
> This is new feature!

# Disable new feature
$ ./mvnw spring-boot:run -Dcom.noritakakamiya.feature-flag=false -Dspring-boot.run.fork=false
$ curl http://localhost:8080/new-feature
> {"timestamp":"2020-03-07T08:15:08.883+0000","status":404,"error":"Not Found","message":"No message available","path":"/new-feature"}

Using -Dspring-boot.run.fork=false for simplified README. Please see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.2-Release-Notes#fork-enabled-by-default-in-maven-plugin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages