Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

热部署插件HotSecondsServer的一个扩展包,实现对各种第三方框架的热更新,持续更新中 .....

License

Notifications You must be signed in to change notification settings

Liubsyy/HotSecondsExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HotSecondsServer 插件扩展通用包

这个工程主要是用于扩展HotSecondsServer热部署逻辑,兼容更多的第三方开源框架,热部署第三方框架说简单也简单,说复杂也复杂,简单的点是,只要懂框架原理就能按照加载的原理重新增量加载/注册即可(先清理缓存),复杂的点是,需要考虑每个版本每个框架在不同的场景下的兼容性,需要花费一定的时间和精力。大家可直接Fork项目提交代码,后续再合并一下,众人拾柴火焰高,本插件的理念是:一切皆可热部署。

扩展包更新范围

版本 更新范围 中央仓库发布时间
2.0.1 dynamic-datasource影响启动问题
jacoco覆盖率
mybatis优化
2024-7-10
2.0.0 支持HotSecondsServer7 2024-5-25
1.0.4 fastjson/gson/jackson支持
mybatis实体新增字段
modelmapper清除缓存
2024-5-18
1.0.3 spring5 findAnnotationOnBean为null问题 2024-3-9
1.0.1 SpringMVC json缓存清除 2024-1-1
1.0.0 MyBatis和MyBatis Plus支持新增mapper接口和xml配置文件 2023-09-23

扩展包使用

  1. 首先在maven 的pom.xml引用本工程的包

    <dependency>
       <groupId>io.github.liubsyy</groupId>
       <artifactId>HotSecondsExtension</artifactId>
       <version>最新版</version>
    </dependency>
  2. 然后在hot-seconds-remote.xml中配置 com.liubs.hotseconds.extension.AutoChoose,会自动智能选择需要的扩展组件,然后启动项目即可

     <dev-ext>
         <classname>com.liubs.hotseconds.extension.AutoChoose</classname>
     </dev-ext>

开发步骤

  1. 写一个类,实现 IHotExtHandler接口

  2. 在适当的时机注册这个类到 AllExtensionsManager

  • 可以在某个特殊类初始化的时候注册,demo: VelocityRegistry
  • 也可以直接在AllExtensionsManager写死

扩展包开发例子

About

热部署插件HotSecondsServer的一个扩展包,实现对各种第三方框架的热更新,持续更新中 .....

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.