AI prompts
base on HotSeconds是一款Java远程热部署的插件,可实现秒级一键化热更新。插件分为HotSecondsClient(IDEA热部署插件)和HotSecondsServer(服务端javaagent热更新插件),可以热更新java和常用配置文件,也支持常用框架(Spring,MyBatis)的热更新,相对传统部署可节省大量时间提高开发效率。 ## HotSeconds
[![License](https://img.shields.io/github/license/Liubsyy/HotSecondsIDEA)](./LICENSE)
[![GitHub](https://img.shields.io/github/stars/Liubsyy/HotSecondsIDEA.svg?style=flat&label=Stars)](https://github.com/Liubsyy/HotSecondsIDEA)
[![](https://img.shields.io/jetbrains/plugin/d/21635)](https://plugins.jetbrains.com/plugin/21635-hotsecondsclient)
[![JDK-8](https://img.shields.io/badge/JDK-8-red.svg)]()
[![JDK-11](https://img.shields.io/badge/JDK-11-blue.svg)]()
[![JDK-17](https://img.shields.io/badge/JDK-17-green.svg)]()
[![JDK-21](https://img.shields.io/badge/JDK-21-blue.svg)]()
[![QQ](https://img.shields.io/badge/QQ-173093336-blue.svg)]()
HotSeconds是一款Java远程热部署的插件(当然也支持本地热部署),分为HotSecondsClient(IDEA热部署插件)和HotSecondsServer(服务端agent),可热更新java和常用配置文件,也支持常用框架(Spring,MyBatis)的热更新,相对传统打包->部署->启动流程可节省大量时间提高开发效率。<br>
目前支持Java8,Java11,Java17和Java21。
- [English Document](https://github.com/Liubsyy/HotSecondsIDEA/blob/master/install/document.md)
### 插件特性
- 热更新Java类,包括修改代码块,新增字段,新增方法,新增类,以及动态代理类
- 支持框架的热更新,比如Spring, SpringMVC,SpringBoot,MyBatis等
- 支持一些资源文件的上传和热部署
- 支持热部署jar包中的.class和热部署整个jar包
- 支持本地热部署和远程热部署,可本地编译也可远程编译
- 支持获取远程字段值,远程执行方法
- 支持自定义扩展,比如热更新某个文件的刷新逻辑
### 文档链接
- [所有功能介绍](https://github.com/Liubsyy/HotSecondsIDEA/wiki/HotSeconds%E6%89%80%E6%9C%89%E5%8A%9F%E8%83%BD%E4%BB%8B%E7%BB%8D)
- [安装文档](https://github.com/Liubsyy/HotSecondsIDEA/blob/master/install/%E4%BD%BF%E7%94%A8%E6%96%87%E6%A1%A3.md)
- [安装文档(萌新版)](https://juejin.cn/post/7325375988853358607)
- [常见问题和解决方案](https://github.com/Liubsyy/HotSecondsIDEA/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%92%8C%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88)
### 下载链接
- 服务端插件 [HotSecondsServer](https://github.com/Liubsyy/HotSecondsIDEA/blob/master/install/download_server.md)
- 客户端插件 [HotSecondsClient](https://plugins.jetbrains.com/plugin/21635-hotsecondsclient)
- 代理服务器 [HotSecondsProxy](https://github.com/Liubsyy/HotSecondsIDEA/blob/master/install/proxyserver.md)
### 插件扩展
本插件是可以支持自定义扩展的,比如热更新某个文件之后执行自定义的逻辑
- [插件扩展步骤](https://github.com/Liubsyy/HotSecondsIDEA/wiki/HotSeconds%E6%89%80%E6%9C%89%E5%8A%9F%E8%83%BD%E4%BB%8B%E7%BB%8D#27-%E6%8F%92%E4%BB%B6%E6%89%A9%E5%B1%95)
- [HotSecondsExtension项目](https://github.com/Liubsyy/HotSecondsExtension)
### 使用演示
按文档安装完之后连接目标端口,右键选择Hot swap this file to remote即可实现单文件热更新,如果是java文件会先编译再热更新。如果需要远程编译可选择Remote compilation and hot swap
<img src="https://github.com/Liubsyy/HotSecondsIDEA/blob/master/img/wiki/hotswapfile.png" width="500" height="306" />
批量热更新:可以将修改的文件批量热部署到远程
![](https://github.com/Liubsyy/HotSecondsIDEA/blob/master/img/gif/batchhot.gif)
远程执行函数:简单高效触发某个函数获取结果
<img src="https://github.com/Liubsyy/HotSecondsIDEA/blob/master/img/wiki/remotemethod.png" width="800" height="600" />
<br>
### 问题反馈和交流
可以先看[常见问题和解决方案](https://github.com/Liubsyy/HotSecondsIDEA/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%92%8C%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88),如果还有问题直接建Issues即可,同时也欢迎加QQ群 **173093336** 交流。<br>
**如果本插件对你有帮助,请点击 ⭐Star 支持一下吧,后续为大家带来更多的黑科技**
[![Star History Chart](https://api.star-history.com/svg?repos=Liubsyy/HotSecondsIDEA&type=Date)](https://star-history.com/#Liubsyy/HotSecondsIDEA&Date)
", Assign "at most 3 tags" to the expected json: {"id":"1954","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"