English | 简体中文
The original intention of development: The aim is to make the most convenient IDEA hot update plug-in, reduce user operation steps, and provide visual operation updates with zero configuration.
- JDK1.8
- IDEA2021.3
- Gradle8.7
Support Functions | Description | |
---|---|---|
MybatisXML Hot Update | √ | Supports hot updates of content such as select/insert/delete/update/resultMap/parameterMap/sql/cache |
Class Hot Update | √ | Warm updates can be modified within methods natively. Enhancements such as modifying field method classes and hot update of lombok annotations require the installation of the dcevm patch, as shown in the following tutorial |
Spring Hot Update | √ | Bean registration and destruction are supported. RequestMapping can be dynamically updated |
Remote Hot Update | Ongoing | |
... | ... |
After the installation is successful, restart IDEA, and output a banner after starting the project to indicate that the installation is successful
- Mapper hot update
Click the 'File Hot Swap' button in the MapperXML file to execute the hot update command, and the normal output of the command is as follows:
- Java hot update
- Spring hot update
APIs can be created, edited, and deleted dynamically. The demonstration is as follows.
- jar file hot updates
Supports hot update of source code files in .class files and jar packages.
- Batch Hot Update
Supports hot updating of selected directories or files in the IDEA Project window and the Git change log window.
Limitations of hot-like updates
- The parent class of the new class and the old class must be the same.
- The new class and the old class should also implement the same number of interfaces, and they should be the same interfaces.
- The new class and the old class accessors must be the same.
- The number of fields and field names of the new and old classes must be the same.
- Methods added or deleted from new and old classes must be private static/final.
- You can modify the method body.
If you want to remove the restrictions, you need to install the jdk patch, and the DECVM patch can be downloaded at: /~https://github.com/dcevm/dcevm
Download the patch of the corresponding JDK version and replace it to complete the installation.
Output version, successful output example
Support is available for a fee, contact details are below.
Gitee Address: https://gitee.com/song_biao/super-hot-swap
github address: /~https://github.com/songbiaoself/SuperHotSwap
Email 📫: 646997146@qq.com
Official account: CodeRevolt