Skip to main content


Showing posts from December, 2019

An Oauth2 Authorization Server Sample with Spring Boot, Spring Security, Gradle, Postgresql, and Flyway

I recently decided to make a sample code for An OAuth2 Authorization Server with Spring Framework , Gradle , Posgresql , and Flyway . The reason is because the lack of sample for Spring with Gradle build tool. Audience: * The sample code is for readers who have some knowledge of Java, Postgresql, Spring, and Gradle and look for the way to put it together. What in the examples: * Provide JWT * Auto database migration with Flyway * Build with gradle * Running locally with Docker + docker-compose * Store data in Postgresql database * Init database with startup sql-script Link to the repository: spring-oauth2-authorization-server - ninjahoahong