1.实现springboot启动事件监听接口,springboot启动时会以SPI方式加载
2.在contextLoaded之后,获取当前类加载器,反射调用URLClassLoader的addUrl方法,把插件包的路径,添加到类加载器
3.springboot容器初始化刷新时,插件jar的bean也会被扫描注册(bean路径需在包扫描范围)
-
Notifications
You must be signed in to change notification settings - Fork 0
zhouj-github/spring-boot-jar-loader
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published