spring-microservices-boilerplate is a boilerplate which is very helpful for java programmer and friendly to front end.
And build with:
And use specification-arg-resolver for filter.
NOTE If you need RSA sign check, you can use
$ cd <spring-microservices-boilerplate root path> $ ./gradlew clean build bootRun
Run it, Open your browser and access http://localhost:8080/swagger-ui.html#/.
NOTE Default port is 8080, you can modify it which key is
You can test API by the tips.
refresh_tokenwith login API. and result is:
You'll get a 429 response when you add a "Limit-Key" header value like "root" and request the api too often.
(3 times in 10 seconds, you can config it in application.yml).
Request with "Limit-Key" header: and result is:
Or get new
Access users. and result is:
java -jar foo.jar
Copyright (c) since 2015 saintdan