{"id":16099746,"url":"https://github.com/hantsy/spring-webmvc-jwt-sample","last_synced_at":"2025-05-15T12:06:49.338Z","repository":{"id":38683164,"uuid":"130998506","full_name":"hantsy/spring-webmvc-jwt-sample","owner":"hantsy","description":"Secures REST APIs with Spring Security and JWT Token based Authentication","archived":false,"fork":false,"pushed_at":"2025-04-28T16:01:57.000Z","size":279,"stargazers_count":491,"open_issues_count":0,"forks_count":225,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-28T17:22:22.091Z","etag":null,"topics":["jwt","spring","spring-boot","spring-data-jpa","spring-data-rest","spring-security"],"latest_commit_sha":null,"homepage":"https://medium.com/zero-equals-false/protect-rest-apis-with-spring-security-and-jwt-5fbc90305cc5","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hantsy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-04-25T11:48:35.000Z","updated_at":"2025-04-28T16:02:00.000Z","dependencies_parsed_at":"2024-03-30T21:46:31.440Z","dependency_job_id":null,"html_url":"https://github.com/hantsy/spring-webmvc-jwt-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fspring-webmvc-jwt-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fspring-webmvc-jwt-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fspring-webmvc-jwt-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hantsy%2Fspring-webmvc-jwt-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hantsy","download_url":"https://codeload.github.com/hantsy/spring-webmvc-jwt-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254337613,"owners_count":22054253,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jwt","spring","spring-boot","spring-data-jpa","spring-data-rest","spring-security"],"created_at":"2024-10-09T18:44:06.285Z","updated_at":"2025-05-15T12:06:44.327Z","avatar_url":"https://github.com/hantsy.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-webmvc-jwt-sample\n\n![build](https://github.com/hantsy/spring-webmvc-jwt-sample/workflows/build/badge.svg)\n\n## What is this?\n\nThis is a sample project demos how to use JWT token based authentication to protect the RESTful APIs in a Spring WebMVC application.\n\n\u003e If you are interested in the new variant built with the Spring WebFlux stack, check [spring-reactive-jwt-sample](https://github.com/hantsy/spring-reactive-jwt-sample/) for more details.\n\n## Guide\n\nCheck the [step-by-step GUIDE](./GUIDE.md) to get the detailed explanation of the example codes.  \n\n\u003e The original codes were written in Spring Boot 2.0, there are some slightly difference in the main/master branch due to the changes brought in the latest Spring Boot 3.0.\n\n## Prerequisites\n\nMake sure you have installed the following software.\n\n* Java 17\n* Apache Maven 3.6.x\n* Docker\n\n## Build \n\nClone the source codes from Github.\n\n```bash\ngit clone https://github.com/hantsy/spring-webmvc-jwt-sample\n```\n\nOpen a terminal, and switch to the root folder of the project, and run the following command to build the whole project.\n\n```bash\ndocker-compose up postgres // start up a postgres\nmvn clean install // build the project\n```\n\nRun the application.\n\n```bash\nmvn spring-boot:run\n// or from command line after building\njava -jar target/xxx.jar\n```\n\n\n## Contribution\n\nAny suggestions are welcome, filing an issue or submitting a PR is also highly recommended.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantsy%2Fspring-webmvc-jwt-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhantsy%2Fspring-webmvc-jwt-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhantsy%2Fspring-webmvc-jwt-sample/lists"}