{"id":28441777,"url":"https://github.com/hhstu/springboot-jwt-demo","last_synced_at":"2025-08-23T13:38:35.228Z","repository":{"id":292653487,"uuid":"981535791","full_name":"hhstu/springboot-jwt-demo","owner":"hhstu","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-11T10:45:49.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T02:43:11.738Z","etag":null,"topics":["demo","java","jwt","prometheus","srpingboot"],"latest_commit_sha":null,"homepage":"","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/hhstu.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,"zenodo":null}},"created_at":"2025-05-11T10:37:28.000Z","updated_at":"2025-06-25T09:06:09.000Z","dependencies_parsed_at":"2025-05-11T11:43:32.865Z","dependency_job_id":null,"html_url":"https://github.com/hhstu/springboot-jwt-demo","commit_stats":null,"previous_names":["hhstu/springboot-jwt-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hhstu/springboot-jwt-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhstu%2Fspringboot-jwt-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhstu%2Fspringboot-jwt-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhstu%2Fspringboot-jwt-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhstu%2Fspringboot-jwt-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhstu","download_url":"https://codeload.github.com/hhstu/springboot-jwt-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhstu%2Fspringboot-jwt-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749171,"owners_count":24814141,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["demo","java","jwt","prometheus","srpingboot"],"created_at":"2025-06-06T05:06:48.370Z","updated_at":"2025-08-23T13:38:35.221Z","avatar_url":"https://github.com/hhstu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java Demo with prometheus and jwt\n\n\n### jwt\n\n```bash\n# get token\ncurl 127.0.0.1:8080/login\n\n# get username by token\ncurl 127.0.0.1:8080/users -H 'Authorization Bearer xxxxx'\n```\n\n### prometheus metrics\n接入 jvm 示例：\n```bash\n# application.properties\nmanagement.endpoints.web.exposure.include=health,info,prometheus  # * 也可以\nmanagement.endpoint.prometheus.enabled=true\n```\n```bash\n# pom.xml 引入两个依赖\n\u003cdependency\u003e\n\t\u003cgroupId\u003eorg.springframework.boot\u003c/groupId\u003e\n\t\u003cartifactId\u003espring-boot-starter-actuator\u003c/artifactId\u003e\n\u003c/dependency\u003e\n\u003cgroupId\u003eio.micrometer\u003c/groupId\u003e\n\t\u003cartifactId\u003emicrometer-registry-prometheus\u003c/artifactId\u003e\n\u003c/dependency\u003e\n\n```\n\n```bash\n# 本地测试\ncurl  127.0.0.1:8080/actuator/prometheus\n# HELP system_load_average_1m The sum of the number of runnable entities queued to available processors and the number of runnable entities running on the available processors averaged over a period of time\n# TYPE system_load_average_1m gauge\nsystem_load_average_1m 4.82470703125\n# HELP tomcat_sessions_created_sessions_total  \n# TYPE tomcat_sessions_created_sessions_total counter\ntomcat_sessions_created_sessions_total 0.0\n# HELP executor_pool_max_threads The maximum allowed number of threads in the pool\n# TYPE executor_pool_max_threads gauge\nexecutor_pool_max_threads{name=\"applicationTaskExecutor\",} 2.147483647E9\n# HELP process_cpu_usage The \"recent cpu usage\" for the Java Virtual Machine process\n# TYPE process_cpu_usage gauge\nprocess_cpu_usage 0.0\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhstu%2Fspringboot-jwt-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhstu%2Fspringboot-jwt-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhstu%2Fspringboot-jwt-demo/lists"}