{"id":17004489,"url":"https://github.com/zlt2000/springs-boot-plugin-test","last_synced_at":"2025-07-19T10:06:48.500Z","repository":{"id":43553919,"uuid":"406240847","full_name":"zlt2000/springs-boot-plugin-test","owner":"zlt2000","description":"Spring Boot 动态加载 Jar 包，并配置为 Bean","archived":false,"fork":false,"pushed_at":"2023-02-17T15:04:45.000Z","size":3634,"stargazers_count":75,"open_issues_count":1,"forks_count":47,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-04T08:38:58.475Z","etag":null,"topics":["jar","plugin","spring-boot"],"latest_commit_sha":null,"homepage":"http://zlt2000.cn","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/zlt2000.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":"2021-09-14T05:48:25.000Z","updated_at":"2025-03-25T12:00:59.000Z","dependencies_parsed_at":"2024-10-28T14:06:58.394Z","dependency_job_id":"508f7b81-f7db-4761-b4ab-7744d05c1f16","html_url":"https://github.com/zlt2000/springs-boot-plugin-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zlt2000/springs-boot-plugin-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlt2000%2Fsprings-boot-plugin-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlt2000%2Fsprings-boot-plugin-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlt2000%2Fsprings-boot-plugin-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlt2000%2Fsprings-boot-plugin-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zlt2000","download_url":"https://codeload.github.com/zlt2000/springs-boot-plugin-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlt2000%2Fsprings-boot-plugin-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265915139,"owners_count":23848491,"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":["jar","plugin","spring-boot"],"created_at":"2024-10-14T04:43:45.322Z","updated_at":"2025-07-19T10:06:48.463Z","avatar_url":"https://github.com/zlt2000.png","language":"Java","readme":"#### 详细说明\n[《Spring Boot 如何热加载jar实现动态插件？》](https://mp.weixin.qq.com/s/Fg-jsoFon5LwsPAaBbeiew)\n\n#### 目录结构\n- **plugin-impl**：插件实现\n- **plugin-users**：插件使用样例\n- **plugins**：插件包存放目录\n\n#### 测试 Spring Boot 动态加载 Jar 包\n1. 启动时动态加载\n2. 运行时动态加载\n\n#### 测试步骤\n进入 plugin-users 工程\n1. 修改 `application.properties` 中的 `targetUrl` 参数值为本机 plugin 目录中 jar 的实际绝对路径\n2. 启动 plugin-users 工程\n3. 测试启动时动态加载jar：`http://127.0.0.1:8080/test`\n4. 测试运行时动态加载jar：`http://127.0.0.1:8080/reload`\n5. 测试运行时动态卸载jar： `http://127.0.0.1:8080/remove`","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzlt2000%2Fsprings-boot-plugin-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzlt2000%2Fsprings-boot-plugin-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzlt2000%2Fsprings-boot-plugin-test/lists"}