Git Product home page Git Product logo

springs-boot-plugin-test's Introduction

详细说明

《Spring Boot 如何热加载jar实现动态插件?》

目录结构

  • plugin-impl:插件实现
  • plugin-users:插件使用样例
  • plugins:插件包存放目录

测试 Spring Boot 动态加载 Jar 包

  1. 启动时动态加载
  2. 运行时动态加载

测试步骤

进入 plugin-users 工程

  1. 修改 application.properties 中的 targetUrl 参数值为本机 plugin 目录中 jar 的实际绝对路径
  2. 启动 plugin-users 工程
  3. 测试启动时动态加载jar:http://127.0.0.1:8080/test
  4. 测试运行时动态加载jar:http://127.0.0.1:8080/reload
  5. 测试运行时动态卸载jar: http://127.0.0.1:8080/remove

springs-boot-plugin-test's People

Contributors

zlt2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

springs-boot-plugin-test's Issues

maven打包的jar包如何注册

maven 打包后的jar包结构
|BOOT-INF
| |classes
| | |自己的包
|META-INF
|org 其他依赖包

使用全类名进行加载会报notfoundclass 错误
|自己的包
|依赖包

不使用maven 打的jar包结构
可以加载
请问怎么解决

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.