{"id":21712437,"url":"https://github.com/asepscareer/spring-boot-jwt","last_synced_at":"2025-03-20T18:24:06.182Z","repository":{"id":114461955,"uuid":"546585046","full_name":"asepscareer/spring-boot-jwt","owner":"asepscareer","description":"Spring Boot JWT","archived":false,"fork":false,"pushed_at":"2023-09-05T07:35:30.000Z","size":85356,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T17:11:26.628Z","etag":null,"topics":["spring-boot","spring-security","spring-security-jwt"],"latest_commit_sha":null,"homepage":"https://jwt-asep-5fcb7418385e.herokuapp.com/swagger-ui","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asepscareer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2022-10-06T10:07:27.000Z","updated_at":"2023-06-23T04:50:45.000Z","dependencies_parsed_at":"2025-01-25T17:21:21.180Z","dependency_job_id":null,"html_url":"https://github.com/asepscareer/spring-boot-jwt","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/asepscareer%2Fspring-boot-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fspring-boot-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fspring-boot-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asepscareer%2Fspring-boot-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asepscareer","download_url":"https://codeload.github.com/asepscareer/spring-boot-jwt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244667620,"owners_count":20490463,"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":["spring-boot","spring-security","spring-security-jwt"],"created_at":"2024-11-25T23:39:05.903Z","updated_at":"2025-03-20T18:24:06.176Z","avatar_url":"https://github.com/asepscareer.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot with JWT and H2 example\n\n---\n\n## Dependency\n– If you want to use PostgreSQL:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.postgresql\u003c/groupId\u003e\n  \u003cartifactId\u003epostgresql\u003c/artifactId\u003e\n  \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n– or MySQL:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003emysql\u003c/groupId\u003e\n  \u003cartifactId\u003emysql-connector-java\u003c/artifactId\u003e\n  \u003cscope\u003eruntime\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n## Configure Spring Datasource, JPA, App properties\nOpen `src/main/resources/application.properties`\n- For PostgreSQL:\n```\nspring.datasource.url= jdbc:postgresql://localhost:5432/testdb\nspring.datasource.username= postgres\nspring.datasource.password= 123\n\nspring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation= true\nspring.jpa.properties.hibernate.dialect= org.hibernate.dialect.PostgreSQLDialect\n\n# Hibernate ddl auto (create, create-drop, validate, update)\nspring.jpa.hibernate.ddl-auto= update\n\n# App Properties\nstorm.app.jwtCookieName= stormcode\nstorm.app.jwtSecret= stormCodeSecretKey\nstorm.app.jwtExpirationMs= 86400000\n```\n- For MySQL\n```\nspring.datasource.url= jdbc:mysql://localhost:3306/testdb?useSSL=false\nspring.datasource.username= root\nspring.datasource.password= 123456\n\nspring.jpa.properties.hibernate.dialect= org.hibernate.dialect.MySQL5InnoDBDialect\nspring.jpa.hibernate.ddl-auto= update\n\n# App Properties\nstorm.app.jwtCookieName= stormcode\nstorm.app.jwtSecret= stormCodeSecretKey\nstorm.app.jwtExpirationMs= 86400000\n```\n## Run Spring Boot application\n```\nmvn spring-boot:run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasepscareer%2Fspring-boot-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasepscareer%2Fspring-boot-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasepscareer%2Fspring-boot-jwt/lists"}