danielliao11/spring-microservice-boilerplate
소개
Spring OAuth 2로 보호되는 REST 서비스 보일러플레이트
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalspring-microservices-boilerplate
Index
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
validateWithSignCheckof ValidateHelper
Build and Run [TOP]
$ cd <spring-microservices-boilerplate root path>
$ ./gradlew clean build bootRun
NOTICE [TOP]
- Validate failed -> Response http status is 422(Unprocessable Entity)
- Server error -> Response http status is 500(Internal Server Error)
Usage [TOP]
Step 1: Import the init.sql to your database, I suggest you to use PostgreSQL [TOP]
Step 2: Config your application.yml to choose cache type and token store type. [TOP]
Step 3: Access resources with Swagger. [TOP]
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
server.portin application.yml.

You can test API by the tips.
- Get
access_tokenandrefresh_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_tokenwithrefresh_token.
Access users.
and result is:

Deploy [TOP]
- Build war and use tomcat.
- Build jar and run
java -jar foo.jar - Use Docker. You can build your docker image by Dockerfile. And run it with docker-compose.yml.
License [TOP]
Copyright (c) since 2015 saintdan
Version History [TOP]
관련 프로젝트 살펴보기
불러오는 중…