<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>欢迎来到Husw！OnRoad 在路上：：---WwW.husw.NET</title><link>https://www.husw.net/</link><description>记录工作学习的点点滴滴！学习是一辈子的事，学无止境！ 人生如行路，我一直在路上... </description><item><title>uni-app X 开发中最重要的规则之一</title><link>https://www.husw.net/post/1554.html</link><description>&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2026/05/20260509101349177829282972282.png&quot; width=&quot;750&quot; height=&quot;356&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;width: 750px; height: 356px;&quot;/&gt;&lt;/p&gt;&lt;p&gt;这是 &lt;strong&gt;uni-app X 开发中最重要的规则之一&lt;/strong&gt;&lt;/p&gt;&lt;hr/&gt;&lt;h2&gt;✅ uni-app X 官方正确导入规则（最终版）&lt;/h2&gt;&lt;table width=&quot;960&quot; style=&quot;width: 554px;&quot;&gt;&lt;thead&gt;&lt;tr class=&quot;firstRow&quot;&gt;&lt;th style=&quot;width: 456px; min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; text-align: left; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot;&gt;&lt;strong&gt;&lt;div class=&quot;ybc-p&quot;&gt;功能&lt;/div&gt;&lt;/strong&gt;&lt;/th&gt;&lt;th style=&quot;width: 504px; min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; text-align: left; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot;&gt;&lt;strong&gt;&lt;div class=&quot;ybc-p&quot;&gt;正确来源&lt;/div&gt;&lt;/strong&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;ref&lt;/code&gt;/ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;reactive&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;vue&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;computed&lt;/code&gt;/ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;watch&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;vue&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;onLoad&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;@dcloudio/uni-app&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;onShow&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;@dcloudio/uni-app&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;onPullDownRefresh&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;@dcloudio/uni-app&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;onReachBottom&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;@dcloudio/uni-app&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;456&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;uni.xxx()&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; vertical-align: baseline; white-space: normal; word-break: normal; border-color: rgb(224, 224, 224);&quot; width=&quot;504&quot;&gt;&lt;div class=&quot;ybc-p&quot;&gt;✅ 全局&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h3&gt;✅ Vue 响应式 API&lt;/h3&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;import&amp;nbsp;{&amp;nbsp;ref,&amp;nbsp;reactive,&amp;nbsp;computed&amp;nbsp;}&amp;nbsp;from&amp;nbsp;&amp;#39;vue&amp;#39;&lt;/pre&gt;&lt;h3&gt;✅ uni-app X 页面生命周期&lt;/h3&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;import&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;onLoad,&amp;nbsp;&amp;nbsp;&amp;nbsp;onShow,&amp;nbsp;&amp;nbsp;&amp;nbsp;onReady,&amp;nbsp;&amp;nbsp;&amp;nbsp;onHide,&amp;nbsp;&amp;nbsp;&amp;nbsp;onUnload,&amp;nbsp;&amp;nbsp;&amp;nbsp;onPullDownRefresh,&amp;nbsp;&amp;nbsp;&amp;nbsp;onReachBottom&amp;nbsp;}&amp;nbsp;from&amp;nbsp;&amp;#39;@dcloudio/uni-app&amp;#39;&lt;/pre&gt;&lt;h3&gt;✅ uni 全局 API（不用 import）&lt;/h3&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;uni.request()&amp;nbsp;uni.navigateTo()&amp;nbsp;uni.setStorageSync()&amp;nbsp;uni.getStorageSync()&lt;/pre&gt;&lt;hr/&gt;&lt;h2&gt;❌ 错误写法（以后绝对不再出现）&lt;/h2&gt;&lt;table&gt;&lt;thead style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;错误&lt;/th&gt;&lt;th style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;原因&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;&lt;code style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 2px 4px&quot;&gt;import { ref } from &amp;#39;@dcloudio/uni-app&amp;#39;&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;❌ 不存在&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;&lt;code style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 2px 4px&quot;&gt;import { onLoad } from &amp;#39;vue&amp;#39;&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;❌ Vue 没有&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;&lt;code style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 2px 4px&quot;&gt;getCurrentPages()[i].$page&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;❌ uni-app X 已移除&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;&lt;code style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 2px 4px&quot;&gt;import &amp;#39;@dcloudio/uni-app-x&amp;#39;&lt;/code&gt;&lt;/td&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;❌ 不存在&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr/&gt;&lt;h2&gt;✅ AI 提示为什么会出现错误？&lt;/h2&gt;&lt;table&gt;&lt;thead style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot; class=&quot;firstRow&quot;&gt;&lt;th style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;原因&lt;/th&gt;&lt;th style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;说明&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;uni-app X 文档不完整&lt;/td&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;很多旧写法没标注废弃&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;HBuilderX 提示误导&lt;/td&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;类型服务不完善&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 0px&quot;&gt;&lt;td style=&quot;font-size: 16px;border-collapse: collapse;border-spacing: 0px;padding: 10.7143px 12.8571px 10.7143px 0px;border: 1px solid rgb(224, 224, 224)&quot;&gt;AI 在快速演进中&lt;/td&gt;&lt;td style=&quot;font-size: 16px; border-collapse: collapse; border-spacing: 0px; padding: 10.7143px 12.8571px 10.7143px 0px; border: 1px solid rgb(224, 224, 224); word-break: break-all;&quot;&gt;早期混合了 uni-app 写法&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr/&gt;&lt;h2&gt;✅ 示例：标准页面模板（以后所有页面都按这个来）&lt;/h2&gt;&lt;pre class=&quot;prism-highlight prism-language-typescript&quot;&gt;&amp;lt;template&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;view&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;text&amp;gt;{{&amp;nbsp;msg&amp;nbsp;}}&amp;lt;/text&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;lt;/view&amp;gt;
&amp;lt;/template&amp;gt;

&amp;lt;script&amp;nbsp;setup&amp;gt;
//&amp;nbsp;✅&amp;nbsp;Vue&amp;nbsp;响应式
import&amp;nbsp;{&amp;nbsp;ref&amp;nbsp;}&amp;nbsp;from&amp;nbsp;&amp;#39;vue&amp;#39;

//&amp;nbsp;✅&amp;nbsp;uni-app&amp;nbsp;X&amp;nbsp;生命周期
import&amp;nbsp;{&amp;nbsp;onLoad,&amp;nbsp;onShow&amp;nbsp;}&amp;nbsp;from&amp;nbsp;&amp;#39;@dcloudio/uni-app&amp;#39;

const&amp;nbsp;msg&amp;nbsp;=&amp;nbsp;ref(&amp;#39;Hello&amp;nbsp;uni-app&amp;nbsp;X&amp;#39;)

onLoad((options)&amp;nbsp;=&amp;gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;console.log(&amp;#39;page&amp;nbsp;load&amp;#39;,&amp;nbsp;options)
})

onShow(()&amp;nbsp;=&amp;gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;console.log(&amp;#39;page&amp;nbsp;show&amp;#39;)
})
&amp;lt;/script&amp;gt;

&amp;lt;style&amp;nbsp;scoped&amp;gt;
.container&amp;nbsp;{
&amp;nbsp;&amp;nbsp;flex:&amp;nbsp;1;
&amp;nbsp;&amp;nbsp;justify-content:&amp;nbsp;center;
&amp;nbsp;&amp;nbsp;align-items:&amp;nbsp;center;
}
&amp;lt;/style&amp;gt;&lt;/pre&gt;</description><pubDate>Sat, 09 May 2026 09:54:50 +0800</pubDate></item><item><title>树莓派3B+扩展系统交换空间swap设置</title><link>https://www.husw.net/post/1553.html</link><description>&lt;ol class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: decimal;&quot;&gt;&lt;li&gt;&lt;p&gt;首先，验证当前交换文件的配置状态&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;查看交换文件详情
sudo&amp;nbsp;swapon&amp;nbsp;--show

#&amp;nbsp;查看文件权限和大小
ls&amp;nbsp;-lh&amp;nbsp;/var/swap

#&amp;nbsp;检查是否已写入&amp;nbsp;fstab&amp;nbsp;实现开机自动挂载
grep&amp;nbsp;swap&amp;nbsp;/etc/fstab&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;设置系统交换空间swap&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;①&amp;nbsp;禁用当前的交换文件
sudo&amp;nbsp;swapoff&amp;nbsp;/var/swap

#&amp;nbsp;②&amp;nbsp;删除旧的交换文件（可选，但建议先备份）
sudo&amp;nbsp;rm&amp;nbsp;/var/swap

#&amp;nbsp;③&amp;nbsp;从&amp;nbsp;/etc/fstab&amp;nbsp;中删除旧条目（如果存在）
sudo&amp;nbsp;nano&amp;nbsp;/etc/fstab
#&amp;nbsp;找到并删除包含&amp;nbsp;“/var/swap”&amp;nbsp;的那一行，保存退出。

#&amp;nbsp;④&amp;nbsp;在根目录创建新的交换文件（以2GB为例）
sudo&amp;nbsp;fallocate&amp;nbsp;-l&amp;nbsp;2G&amp;nbsp;/swapfile
#&amp;nbsp;如果&amp;nbsp;fallocate&amp;nbsp;失败，使用：sudo&amp;nbsp;dd&amp;nbsp;if=/dev/zero&amp;nbsp;of=/swapfile&amp;nbsp;bs=1M&amp;nbsp;count=2048

#&amp;nbsp;⑤&amp;nbsp;设置权限并格式化
sudo&amp;nbsp;chmod&amp;nbsp;600&amp;nbsp;/swapfile
sudo&amp;nbsp;mkswap&amp;nbsp;/swapfile

#&amp;nbsp;⑥&amp;nbsp;启用并永久生效
sudo&amp;nbsp;swapon&amp;nbsp;/swapfile
echo&amp;nbsp;&amp;#39;/swapfile&amp;nbsp;none&amp;nbsp;swap&amp;nbsp;sw&amp;nbsp;0&amp;nbsp;0&amp;#39;&amp;nbsp;|&amp;nbsp;sudo&amp;nbsp;tee&amp;nbsp;-a&amp;nbsp;/etc/fstab

#&amp;nbsp;⑦&amp;nbsp;验证新配置
sudo&amp;nbsp;swapon&amp;nbsp;--show
free&amp;nbsp;-h&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3&gt;&lt;strong&gt;总结&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;ybc-p&quot;&gt;你的 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/var/swap 2GB&lt;/code&gt;&lt;strong&gt;可以正常工作&lt;/strong&gt;，无需立即更改。但如果你：&lt;/div&gt;&lt;ul class=&quot;ybc-ul-component list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;是服务器管理员或追求最佳实践&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;发现 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/var&lt;/code&gt;分区空间不足&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;未来需要调整交换空间大小&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;那么&lt;strong&gt;迁移到根目录的 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/swapfile&lt;/code&gt;是更规范、更一劳永逸的选择&lt;/strong&gt;。否则，保持现状完全没问题。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;!--more--&gt;&lt;p&gt;&lt;span style=&quot;color: #C00000;&quot;&gt;&lt;strong&gt;按以上方法修改完成，重启后，发现&lt;span style=&quot;font-family: monospace; text-wrap-mode: wrap;&quot;&gt;/var/swap 2GB的文件依然存在，交换空间变成了4GB。&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style=&quot;font-family: monospace; text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;我们之前将交换文件从 /var/swap 迁移到了 /swapfile，但是重启后 /var/swap 被重新创建，并且两个交换文件都启用了，导致交换空间变成了4G（两个2G）。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;这可能是因为系统中还有某个服务或配置在每次启动时自动创建并启用 /var/swap。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;常见的原因可能是：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;系统中安装了某些服务（例如某些云镜像或特定发行版）会自动创建交换文件。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;有一个 systemd 服务单元专门负责创建交换文件。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;在 /etc/fstab 中仍然有 /var/swap 的条目，但之前我们删除了，所以可能不是这个原因。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;可能是某个启动脚本（如 /etc/rc.local）中创建了交换文件。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;为了解决这个问题，我们需要找出是哪个进程在创建 /var/swap 并禁用掉。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;步骤：&lt;/div&gt;&lt;ol class=&quot;ybc-ol-component ybc-ol-component_1 list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;首先，检查 /etc/fstab 是否还有 /var/swap 的条目。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;如果没有，那么可能不是通过 fstab 挂载的。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;检查 systemd 服务，看是否有与交换文件相关的服务。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;例如，一些系统会有 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;swapfile.service&lt;/code&gt;或类似的服务。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;检查 /etc/init.d/ 或 /etc/rc.local 等初始化脚本。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;span class=&quot;ybc-li-component__dot-wp&quot;&gt;&lt;/span&gt;&lt;span class=&quot;ybc-li-component_content&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;ybc-p&quot;&gt;另外，也可以检查是否有定时任务在创建交换文件。&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class=&quot;ybc-p&quot;&gt;但是，根据描述，重启后自动创建，很可能是某个系统服务。&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;我们可以尝试以下命令来查找哪些服务与交换文件相关：&lt;/div&gt;&lt;div class=&quot;ybc-p&quot;&gt;查看 systemd 服务中与 swap 相关的单元：&lt;/div&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;systemctl&amp;nbsp;list-unit-files&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;swap&lt;/pre&gt;&lt;h2&gt;&lt;strong&gt;解决方案&lt;/strong&gt;&lt;/h2&gt;&lt;h3&gt;&lt;strong&gt;步骤1：先查看当前情况&lt;/strong&gt;&lt;/h3&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;查看所有启用的交换空间
sudo&amp;nbsp;swapon&amp;nbsp;--show

#&amp;nbsp;查看哪些服务与交换文件相关
sudo&amp;nbsp;systemctl&amp;nbsp;list-units&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;-i&amp;nbsp;swap

#&amp;nbsp;查看&amp;nbsp;fstab&amp;nbsp;内容
cat&amp;nbsp;/etc/fstab&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;swap

#&amp;nbsp;检查是否有&amp;nbsp;systemd-swap&amp;nbsp;服务
sudo&amp;nbsp;systemctl&amp;nbsp;status&amp;nbsp;systemd-swap&lt;/pre&gt;&lt;h3&gt;步骤2：禁用并删除当前的 /var/swap&lt;br/&gt;&lt;/h3&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;先停用&amp;nbsp;/var/swap
sudo&amp;nbsp;swapoff&amp;nbsp;/var/swap

#&amp;nbsp;删除文件
sudo&amp;nbsp;rm&amp;nbsp;-f&amp;nbsp;/var/swap

#&amp;nbsp;验证停用
sudo&amp;nbsp;swapon&amp;nbsp;--show&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;font-family: monospace; text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;步骤3：找出并禁用自动创建 /var/swap 的元凶&lt;/strong&gt;&lt;/h3&gt;&lt;h4&gt;&lt;strong&gt;情况A：如果有 systemd-swap 服务&lt;/strong&gt;&lt;/h4&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;查看&amp;nbsp;systemd-swap&amp;nbsp;配置
sudo&amp;nbsp;cat&amp;nbsp;/etc/systemd/swap.conf
#&amp;nbsp;或
sudo&amp;nbsp;cat&amp;nbsp;/etc/systemd/swap.conf.d/*.conf&amp;nbsp;2&amp;gt;/dev/null

#&amp;nbsp;如果发现&amp;nbsp;swapfile&amp;nbsp;设置为&amp;nbsp;/var/swap，修改为&amp;nbsp;/swapfile
sudo&amp;nbsp;nano&amp;nbsp;/etc/systemd/swap.conf
#&amp;nbsp;查找并修改：
#&amp;nbsp;SwapFile=/var/swap&amp;nbsp;&amp;nbsp;&amp;nbsp;→&amp;nbsp;&amp;nbsp;&amp;nbsp;SwapFile=/swapfile
#&amp;nbsp;或完全禁用自动创建：
#&amp;nbsp;SwapFile=&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;情况B：如果是 systemd 单元&lt;/strong&gt;&lt;span style=&quot;font-family: monospace; text-wrap-mode: wrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;查找所有与&amp;nbsp;swap&amp;nbsp;相关的&amp;nbsp;systemd&amp;nbsp;单元
systemctl&amp;nbsp;list-unit-files&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;swap

#&amp;nbsp;查看是否有专门创建&amp;nbsp;/var/swap&amp;nbsp;的服务
sudo&amp;nbsp;systemctl&amp;nbsp;list-unit-files&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;-E&amp;nbsp;&amp;#39;(var|swap)&amp;#39;

#&amp;nbsp;如果有可疑服务，禁用它
sudo&amp;nbsp;systemctl&amp;nbsp;disable&amp;nbsp;服务名
sudo&amp;nbsp;systemctl&amp;nbsp;stop&amp;nbsp;服务名&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;情况C：检查 init.d 脚本&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;查看是否有开机启动脚本
ls&amp;nbsp;-la&amp;nbsp;/etc/rc*.d/*swap*&amp;nbsp;2&amp;gt;/dev/null
ls&amp;nbsp;-la&amp;nbsp;/etc/init.d/*swap*&amp;nbsp;2&amp;gt;/dev/null

#&amp;nbsp;检查&amp;nbsp;rc.local
cat&amp;nbsp;/etc/rc.local&amp;nbsp;2&amp;gt;/dev/null&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;swap&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;情况D：检查定时任务或脚本&lt;/strong&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;查找所有包含&amp;nbsp;/var/swap&amp;nbsp;的文件
sudo&amp;nbsp;grep&amp;nbsp;-r&amp;nbsp;&amp;quot;/var/swap&amp;quot;&amp;nbsp;/etc/&amp;nbsp;2&amp;gt;/dev/null
sudo&amp;nbsp;grep&amp;nbsp;-r&amp;nbsp;&amp;quot;mkswap&amp;quot;&amp;nbsp;/etc/&amp;nbsp;2&amp;gt;/dev/null&lt;/pre&gt;&lt;h3&gt;&lt;strong&gt;步骤4：验证 fstab 配置&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;确保 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/etc/fstab&lt;/code&gt;中只有 &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/swapfile&lt;/code&gt;的配置：&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;#&amp;nbsp;备份原始文件
sudo&amp;nbsp;cp&amp;nbsp;/etc/fstab&amp;nbsp;/etc/fstab.backup.$(date&amp;nbsp;+%Y%m%d)

#&amp;nbsp;编辑&amp;nbsp;fstab
sudo&amp;nbsp;nano&amp;nbsp;/etc/fstab&lt;/pre&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;应该只有一行交换文件配置&lt;/strong&gt;：&lt;/div&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;/swapfile&amp;nbsp;none&amp;nbsp;swap&amp;nbsp;sw&amp;nbsp;0&amp;nbsp;0&lt;/pre&gt;&lt;div class=&quot;ybc-p&quot;&gt;&lt;strong&gt;删除或注释掉&lt;/strong&gt; &lt;code class=&quot;hyc-common-markdown__code__inline&quot;&gt;/var/swap&lt;/code&gt;的任何行（如果存在）：&lt;/div&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;#&amp;nbsp;/var/swap&amp;nbsp;none&amp;nbsp;swap&amp;nbsp;sw&amp;nbsp;0&amp;nbsp;0&lt;/pre&gt;&lt;hr/&gt;&lt;h3&gt;&lt;strong&gt;步骤5：重启并验证&lt;/strong&gt;&lt;/h3&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;#&amp;nbsp;重启系统sudo&amp;nbsp;reboot#&amp;nbsp;重启后检查sudo&amp;nbsp;swapon&amp;nbsp;--show#&amp;nbsp;应该只显示&amp;nbsp;/swapfilefree&amp;nbsp;-h#&amp;nbsp;交换空间应该只有&amp;nbsp;2G#&amp;nbsp;检查&amp;nbsp;/var/swap&amp;nbsp;是否被重新创建ls&amp;nbsp;-la&amp;nbsp;/var/swap#&amp;nbsp;如果文件存在，说明有遗漏的服务&lt;/pre&gt;&lt;hr/&gt;&lt;h3&gt;&lt;strong&gt;步骤6：如果问题依旧存在（最后的手段）&lt;/strong&gt;&lt;/h3&gt;&lt;div class=&quot;ybc-p&quot;&gt;创建一个&lt;strong&gt;不可删除的锁文件&lt;/strong&gt;来阻止自动创建：&lt;/div&gt;&lt;pre class=&quot;ybc-pre-component ybc-pre-component_not-math&quot;&gt;#&amp;nbsp;创建空目录（文件无法覆盖目录）
sudo&amp;nbsp;rmdir&amp;nbsp;/var/swap&amp;nbsp;2&amp;gt;/dev/nullsudo&amp;nbsp;mkdir&amp;nbsp;/var/swap
#&amp;nbsp;设置不可删除属性
sudo&amp;nbsp;chattr&amp;nbsp;+i&amp;nbsp;/var/swap
#&amp;nbsp;或者创建只读文件
sudo&amp;nbsp;touch&amp;nbsp;/var/swapsudo&amp;nbsp;chattr&amp;nbsp;+i&amp;nbsp;/var/swap&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sun, 12 Apr 2026 18:53:03 +0800</pubDate></item><item><title>ElementUI中的tabs组件在vue页面中将默认点击事件改为鼠标hover事件触发</title><link>https://www.husw.net/post/1552.html</link><description>&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;el-tabs
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ref=&amp;quot;navTabs&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tab-position=&amp;quot;top&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;style=&amp;quot;height:&amp;nbsp;200px;&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;type=&amp;quot;border-card&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;el-tab-pane&amp;nbsp;label=&amp;quot;用户管理&amp;quot;&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;a&amp;nbsp;href=&amp;quot;https://www.baidu.com/&amp;quot;&amp;nbsp;target=&amp;quot;_self&amp;quot;&amp;gt;百度&amp;lt;/a&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/el-tab-pane&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;el-tab-pane&amp;nbsp;label=&amp;quot;配置管理&amp;quot;&amp;gt;配置管理&amp;lt;/el-tab-pane&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;el-tab-pane&amp;nbsp;label=&amp;quot;角色管理&amp;quot;&amp;gt;角色管理&amp;lt;/el-tab-pane&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;el-tab-pane&amp;nbsp;label=&amp;quot;定时任务补偿&amp;quot;&amp;gt;定时任务补偿&amp;lt;/el-tab-pane&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/el-tabs&amp;gt;&lt;/pre&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;mounted()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.$nextTick(()&amp;nbsp;=&amp;gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this.$refs.navTabs.$refs.nav.$nextTick(()&amp;nbsp;=&amp;gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;此时tab的nav才渲染dom&amp;nbsp;否则拿不到el-tabs__item
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;target&amp;nbsp;=&amp;nbsp;document.getElementsByClassName(&amp;quot;el-tabs__item&amp;quot;);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;let&amp;nbsp;that&amp;nbsp;=&amp;nbsp;this;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for&amp;nbsp;(let&amp;nbsp;i&amp;nbsp;=&amp;nbsp;0;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;target.length;&amp;nbsp;i++)&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;target[i].addEventListener(&amp;quot;mouseover&amp;quot;,&amp;nbsp;()&amp;nbsp;=&amp;gt;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;that.$refs.navTabs.handleTabClick(1,&amp;nbsp;String(i));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});
&amp;nbsp;&amp;nbsp;},&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 15 Sep 2025 21:03:22 +0800</pubDate></item><item><title>使用Mybatis-Plus AutoGenerator 代码生成器报错 'AutoGenerator()' has private access in 'com.baomidou.mybatis'</title><link>https://www.husw.net/post/1548.html</link><description>&lt;p&gt;在 Spring Boot 项目中使用 MyBatis-Plus 的代码生成器 &lt;code&gt;AutoGenerator&lt;/code&gt; 时，若出现错误 **&lt;code&gt;&amp;#39;AutoGenerator()&amp;#39; has private access in &amp;#39;com.baomidou.mybatisplus.generator.AutoGenerator&amp;#39;&lt;/code&gt;**，通常是因为 &lt;strong&gt;MyBatis-Plus 版本升级导致构造方法变为私有&lt;/strong&gt;。&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503131741861513627924.jpg&quot; width=&quot;800&quot; height=&quot;308&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;width: 800px; height: 308px;&quot;/&gt;&lt;/p&gt;&lt;p&gt;以下是解决方案：&lt;/p&gt;&lt;hr/&gt;&lt;h3 id=&quot;h3-3Cstrong3Eu95EEu9898u539Fu56E03C/strong3E-5&quot;&gt;&lt;a class=&quot;reference-link&quot; name=&quot;问题原因&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;&lt;strong&gt;问题原因&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;从 MyBatis-Plus &lt;strong&gt;3.5.0 版本开始&lt;/strong&gt;，&lt;code&gt;AutoGenerator&lt;/code&gt; 的默认构造方法被标记为私有，强制开发者使用新的 &lt;strong&gt;建造者模式（Builder Pattern）&lt;/strong&gt; 来创建实例。旧版本（如 3.4.x）中直接通过 &lt;code&gt;new AutoGenerator()&lt;/code&gt; 实例化的方式已失效。&lt;/p&gt;&lt;hr/&gt;&lt;h3 id=&quot;h3-3Cstrong3Eu89E3u51B3u65B9u6CD53C/strong3E-10&quot;&gt;&lt;a class=&quot;reference-link&quot; name=&quot;解决方法&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;&lt;strong&gt;解决方法&lt;/strong&gt;&lt;/h3&gt;&lt;p&gt;根据 MyBatis-Plus 版本选择对应方案：&lt;/p&gt;&lt;h4 id=&quot;h4-3Cstrong3E1.20u5347u7EA7u5230203.5.0+20u7248u672Cu5E76u4F7Fu7528u65B0u768420Builder20API3C/strong3E-13&quot;&gt;&lt;a class=&quot;reference-link&quot; name=&quot;1. 升级到 3.5.0+ 版本并使用新的 Builder API&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;&lt;strong&gt;1. 升级到 3.5.0+ 版本并使用新的 Builder API&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;&lt;strong&gt;步骤：&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;确认依赖版本&lt;/strong&gt;：确保 &lt;code&gt;pom.xml&lt;/code&gt; 或 &lt;code&gt;build.gradle&lt;/code&gt; 中使用的是 3.5.0+ 版本：&lt;/p&gt;&lt;pre&gt;&amp;lt;dependency&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;groupId&amp;gt;com.baomidou&amp;lt;/groupId&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;artifactId&amp;gt;mybatis-plus-generator&amp;lt;/artifactId&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;version&amp;gt;3.5.4&amp;lt;/version&amp;gt;&amp;nbsp;&amp;lt;!--&amp;nbsp;使用最新版本&amp;nbsp;--&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;使用 Builder 模式重构代码&lt;/strong&gt;：&lt;/p&gt;&lt;pre&gt;//&amp;nbsp;示例：基于&amp;nbsp;Builder&amp;nbsp;模式的新&amp;nbsp;API
DataSourceConfig&amp;nbsp;dataSourceConfig&amp;nbsp;=&amp;nbsp;new&amp;nbsp;DataSourceConfig
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.Builder(&amp;quot;jdbc//localhost:3306/test&amp;quot;,&amp;nbsp;&amp;quot;root&amp;quot;,&amp;nbsp;&amp;quot;password&amp;quot;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.build();

GlobalConfig&amp;nbsp;globalConfig&amp;nbsp;=&amp;nbsp;new&amp;nbsp;GlobalConfig.Builder()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.outputDir(System.getProperty(&amp;quot;user.dir&amp;quot;)&amp;nbsp;+&amp;nbsp;&amp;quot;/src/main/java&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;输出目录
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.author(&amp;quot;YourName&amp;quot;)&amp;nbsp;&amp;nbsp;//&amp;nbsp;作者
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.enableSwagger()&amp;nbsp;//&amp;nbsp;开启&amp;nbsp;Swagger
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.disableOpenDir()&amp;nbsp;//&amp;nbsp;不打开目录
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.build();

PackageConfig&amp;nbsp;packageConfig&amp;nbsp;=&amp;nbsp;new&amp;nbsp;PackageConfig.Builder()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.parent(&amp;quot;com.example.demo&amp;quot;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.moduleName(&amp;quot;member&amp;quot;)&amp;nbsp;&amp;nbsp;//&amp;nbsp;模块名
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.entity(&amp;quot;entity&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;实体类包名
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.mapper(&amp;quot;mapper&amp;quot;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//&amp;nbsp;Mapper接口包名
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.build();

StrategyConfig&amp;nbsp;strategyConfig&amp;nbsp;=&amp;nbsp;new&amp;nbsp;StrategyConfig.Builder()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.addInclude(&amp;quot;user&amp;quot;)&amp;nbsp;//&amp;nbsp;指定生成的表名
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.addTablePrefix(&amp;quot;cm_&amp;quot;)&amp;nbsp;&amp;nbsp;//&amp;nbsp;指定表名的前缀
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.entityBuilder()&amp;nbsp;//&amp;nbsp;实体类策略
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.enableLombok()&amp;nbsp;&amp;nbsp;//&amp;nbsp;开启&amp;nbsp;Lombok
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.naming(NamingStrategy.underline_to_camel)&amp;nbsp;//&amp;nbsp;数据库表映射到实体的命名策略
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.columnNaming(NamingStrategy.underline_to_camel)&amp;nbsp;//&amp;nbsp;数据库表字段映射到实体的命名策略
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.build();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
AutoGenerator&amp;nbsp;generator&amp;nbsp;=&amp;nbsp;new&amp;nbsp;AutoGenerator.Builder(dataSourceConfig);&amp;nbsp;//&amp;nbsp;创建&amp;nbsp;AutoGenerator&amp;nbsp;对象
autoGenerator.global(globalConfig)&amp;nbsp;&amp;nbsp;//&amp;nbsp;设置全局配置
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.packageInfo(packageConfig)&amp;nbsp;//&amp;nbsp;设置包配置
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.strategy(strategyConfig);&amp;nbsp;&amp;nbsp;//&amp;nbsp;设置策略配置
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.build();

autoGenerator.execute();&amp;nbsp;&amp;nbsp;//&amp;nbsp;执行生成&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h4 id=&quot;h4-3Cstrong3E2.20u964Du7EA7u5230203.4.x20u7248u672CuFF08u4E0Du63A8u8350uFF093C/strong3E-53&quot;&gt;&lt;a class=&quot;reference-link&quot; name=&quot;2. 降级到 3.4.x 版本（不推荐）&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;&lt;strong&gt;2. 降级到 3.4.x 版本（不推荐）&lt;/strong&gt;&lt;/h4&gt;&lt;p&gt;如果因兼容性问题暂时无法升级代码，可降级到旧版本：&lt;/p&gt;&lt;pre&gt;&amp;lt;dependency&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;groupId&amp;gt;com.baomidou&amp;lt;/groupId&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;artifactId&amp;gt;mybatis-plus-generator&amp;lt;/artifactId&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;version&amp;gt;3.4.1&amp;lt;/version&amp;gt;&amp;nbsp;&amp;lt;!--&amp;nbsp;旧版本&amp;nbsp;--&amp;gt;
&amp;lt;/dependency&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;注意&lt;/strong&gt;：旧版本可能存在已知问题或安全漏洞，建议尽快适配新版本。&lt;/p&gt;&lt;hr/&gt;&lt;h3 id=&quot;h3-3Cstrong3Eu9A8Cu8BC1u6B65u9AA43C/strong3E-66&quot;&gt;&lt;a class=&quot;reference-link&quot; name=&quot;验证步骤&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;&lt;strong&gt;验证步骤&lt;/strong&gt;&lt;/h3&gt;&lt;ol class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;清理并重新编译项目&lt;/strong&gt;：确保依赖已正确下载。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;检查导入的类路径&lt;/strong&gt;：确认 &lt;code&gt;AutoGenerator&lt;/code&gt; 来自 &lt;code&gt;com.baomidou.mybatisplus.generator&lt;/code&gt;。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;运行生成器&lt;/strong&gt;：执行代码生成逻辑，观察是否成功生成实体类、Mapper 等文件。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;hr/&gt;&lt;h3 id=&quot;h3-3Cstrong3Eu5176u4ED6u53EFu80FDu95EEu98983C/strong3E-73&quot;&gt;&lt;a class=&quot;reference-link&quot; name=&quot;其他可能问题&quot;&gt;&lt;/a&gt;&lt;span class=&quot;header-link octicon octicon-link&quot;&gt;&lt;/span&gt;&lt;strong&gt;其他可能问题&lt;/strong&gt;&lt;/h3&gt;&lt;ul class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;依赖冲突&lt;/strong&gt;：检查是否有其他库引入了旧版本 MyBatis-Plus，使用 Maven/Gradle 的依赖树分析工具排查。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;IDE 缓存&lt;/strong&gt;：清理 IDE 缓存并重启（如 IntelliJ 的 &lt;code&gt;File &amp;gt; Invalidate Caches&lt;/code&gt;）。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;hr/&gt;&lt;p&gt;通过上述调整，代码生成器应能正常运行。若问题依旧，建议参考 &lt;a href=&quot;https://baomidou.com/pages/779a6e/&quot;&gt;MyBatis-Plus 官方文档&lt;/a&gt; 或查看版本更新日志。&lt;/p&gt;</description><pubDate>Thu, 13 Mar 2025 15:29:33 +0800</pubDate></item><item><title>IntelliJ IDEA 2023版本使用Spring Initializer快速创建Spring Boot项目时Java只能选择高于17而无法选择java8的解决方案</title><link>https://www.husw.net/post/1546.html</link><description>&lt;p&gt;在IntelliJ IDEA2023中，使用Spring Initializer快速创建Spring Boot项目时，Java配置限制为17、21或23的问题，即使JDK为1.8，也无法设置为 java8，报错：&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;项目 SDK &amp;#39;1.8&amp;#39; 不支持所选版本的 Java 17。请选择较低版本的 Java，或设置较高版本的 SDK。&amp;nbsp; 要下载其他 SDK，请点击 JDK 下拉列表&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503101741538589223723.jpg&quot; title=&quot;项目 SDK &amp;#39;1.8&amp;#39; 不支持所选版本的 Java 17。请选择较低版本的 Java，或设置较高版本的 SDK。  要下载其他 SDK，请点击 JDK 下拉列表&quot; alt=&quot;项目 SDK &amp;#39;1.8&amp;#39; 不支持所选版本的 Java 17。请选择较低版本的 Java，或设置较高版本的 SDK。  要下载其他 SDK，请点击 JDK 下拉列表&quot; width=&quot;700&quot; height=&quot;627&quot; border=&quot;0&quot; vspace=&quot;0&quot; style=&quot;width: 700px; height: 627px;&quot;/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;该问题的解决方案如下：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;一、升级JDK到17及以上版本&lt;/p&gt;&lt;p&gt;二、使用阿里云源替换官方Spring初始化源获取支持1.8的Java选项。&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;将服务器 URL 由 https://start.spring.io/ 修改为&amp;nbsp;https://start.aliyun.com/&amp;nbsp; 去创建，此时Java配置项就可以选择8。&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503101741539844859347.jpg&quot; title=&quot;Xnip2025-03-10_01-03-20.jpg&quot; alt=&quot;Xnip2025-03-10_01-03-20.jpg&quot; width=&quot;700&quot; height=&quot;621&quot; border=&quot;0&quot; vspace=&quot;0&quot; style=&quot;width: 700px; height: 621px;&quot;/&gt;&lt;/p&gt;&lt;p&gt;完美解决！&lt;/p&gt;</description><pubDate>Mon, 10 Mar 2025 00:38:12 +0800</pubDate></item><item><title>docker compose配置 network 指定ip</title><link>https://www.husw.net/post/1545.html</link><description>&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;version:&amp;nbsp;&amp;#39;3.1&amp;#39;&amp;nbsp;
services:
&amp;nbsp;&amp;nbsp;redis:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;image:&amp;nbsp;redis
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;container_name:&amp;nbsp;redis
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;restart:&amp;nbsp;always
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;networks:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mynetwork:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ipv4_address:&amp;nbsp;172.22.0.25
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ports:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;#39;6379:6379&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;volumes:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;#39;/data/redis/conf/redis.conf:/etc/redis/conf/redis.conf&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;#39;/data/redis/data:/data&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;#39;/data/redis/log/redis.log:/etc/redis.log&amp;#39;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;environment:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&amp;#39;TZ=Asia/Shanghai&amp;#39;
networks:
&amp;nbsp;&amp;nbsp;mynetwork:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;driver:&amp;nbsp;bridge
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ipam:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;config:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;subnet:&amp;nbsp;172.22.0.0/16
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;子网&lt;/pre&gt;&lt;blockquote&gt;&lt;p&gt;1、只有自定义网络，才能手工指定每个容器的ip。默认的bridge是不行的！&lt;/p&gt;&lt;p&gt;2、手工设定了网段比如172.19.0.0&amp;nbsp; &amp;nbsp;不影响docker在host装的网卡docker0 的172.17.0.1&lt;/p&gt;&lt;p&gt;&amp;nbsp; 容器内的172.19.0.XX&amp;nbsp; 还是可以通过172.17.0.1访问到主机。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: wrap;&quot;&gt;参考：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;1. docker-compose.yml&amp;nbsp;&amp;nbsp;参考官网&amp;nbsp;https://docs.docker.com/compose/compose-file/#network-configuration-reference&lt;/p&gt;&lt;p&gt;2.&amp;nbsp;docker-compose配置networks&amp;nbsp;&lt;a href=&quot;https://www.cnblogs.com/youxin/p/17808800.html&quot; _src=&quot;https://www.cnblogs.com/youxin/p/17808800.html&quot;&gt;https://www.cnblogs.com/youxin/p/17808800.html&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;3. docker-compose 手工指定容器IP &lt;a href=&quot;https://www.cnblogs.com/xuanmanstein/p/10576476.html&quot; _src=&quot;https://www.cnblogs.com/xuanmanstein/p/10576476.html&quot;&gt;https://www.cnblogs.com/xuanmanstein/p/10576476.html&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 01 Jan 2025 11:09:25 +0800</pubDate></item><item><title>宝塔面板8 去除首页推荐广告</title><link>https://www.husw.net/post/1542.html</link><description>&lt;p&gt;转载自：&lt;a href=&quot;https://gebilaoli.com/?apid=566&amp;cla=llblog#llblog&quot; target=&quot;_self&quot;&gt;隔壁老李&lt;/a&gt;家，设计很漂亮！&lt;/p&gt;&lt;blockquote&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span class=&quot;boximg&quot; data-sub-html=&quot;宝塔面板8 去除首页推荐广告&quot; data-src=&quot;https://img.jz52.com/2022/06/22/h3daxn-0.jpg&quot; style=&quot;box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span class=&quot;boximg&quot; data-sub-html=&quot;宝塔面板8 去除首页推荐广告&quot; data-src=&quot;https://img.jz52.com/2022/06/22/h3daxn-0.jpg&quot; style=&quot;box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;最近在虚拟机测试环境里装了个宝塔，发现首页各种企业特权的广告，关又关不掉，和牛皮藓一样。&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661017594418.jpg&quot; title=&quot;Xnip2025-03-11_10-40-54.jpg&quot; alt=&quot;Xnip2025-03-11_10-40-54.jpg&quot; style=&quot;font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; width: 700px; height: 565px;&quot; width=&quot;700&quot; height=&quot;565&quot; border=&quot;0&quot; vspace=&quot;0&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;话说都免费用人家面板了，面板也不会经常打开，有点广告也无伤大雅，但是也不排除有人不喜欢的情况。&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;于是一圈搜索，找到了关闭这些推广的方法。&lt;/p&gt;&lt;h3 style=&quot;box-sizing: inherit; margin: 0px 0px 1em; padding: 0px 0px 0px 1em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.25em; line-height: 1.4; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; color: rgb(64, 75, 105); position: relative; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;点击宝塔面板左侧的文件菜单，找到&lt;/h3&gt;&lt;blockquote&gt;&lt;p&gt;/www/server/panel/BTPanel/static/js/index.js&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661057470684.jpg&quot; title=&quot;Xnip2025-03-11_10-41-12.jpg&quot; style=&quot;font-family: 微软雅黑, 宋体, Arial, Helvetica, sans-serif; font-size: 14px; width: 700px; height: 504px;&quot; width=&quot;700&quot; height=&quot;504&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;Xnip2025-03-11_10-41-12.jpg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;话说宝塔也是够良心了，竟然可以在宝塔中修改宝塔文件~~&lt;/p&gt;&lt;h3 style=&quot;box-sizing: inherit; margin: 0px 0px 1em; padding: 0px 0px 0px 1em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.25em; line-height: 1.4; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; color: rgb(64, 75, 105); position: relative; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;打开这个文件，搜索&lt;/h3&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;setTimeout(function&amp;nbsp;()&amp;nbsp;{&amp;nbsp;_this.get_index_list()&amp;nbsp;},&amp;nbsp;400)&lt;/pre&gt;&lt;h3 style=&quot;box-sizing: inherit; margin: 0px 0px 1em; padding: 0px 0px 0px 1em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.25em; line-height: 1.4; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; color: rgb(64, 75, 105); position: relative; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;将代码前的 // 去掉&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;box-sizing: inherit; margin: 0px 0px 1em; padding: 0px 0px 0px 1em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.25em; line-height: 1.4; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; color: rgb(64, 75, 105); position: relative; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661057687225.jpg&quot; width=&quot;700&quot; height=&quot;213&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;width: 700px; height: 213px;&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661173418672.jpg&quot; width=&quot;706&quot; height=&quot;248&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;font-size: 16px; width: 706px; height: 248px;&quot;/&gt;&lt;/h3&gt;&lt;h3 style=&quot;box-sizing: inherit; margin: 0px 0px 1em; padding: 0px 0px 0px 1em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.25em; line-height: 1.4; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; color: rgb(64, 75, 105); position: relative; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;继续搜索&lt;/h3&gt;&lt;blockquote&gt;&lt;p&gt;product_recommend.init&lt;/p&gt;&lt;/blockquote&gt;&lt;h3 style=&quot;box-sizing: inherit; margin: 0px 0px 1em; padding: 0px 0px 0px 1em; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 1.25em; line-height: 1.4; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; color: rgb(64, 75, 105); position: relative; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;一共有两处&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span class=&quot;boximg&quot; data-sub-html=&quot;宝塔面板8 去除首页推荐广告&quot; data-src=&quot;https://img.jz52.com/2023/11/02/dzdwnm-0.png&quot; style=&quot;box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661173552634.jpg&quot; style=&quot;&quot; title=&quot;Xnip2025-03-11_10-42-12.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661151268934.jpg&quot; title=&quot;Xnip2025-03-11_10-42-34.jpg&quot; style=&quot;text-wrap: wrap;&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;全部删除或注释掉&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661151581883.jpg&quot; style=&quot;width: 700px; height: 547px;&quot; title=&quot;Xnip2025-03-11_10-42-56.jpg&quot; width=&quot;700&quot; height=&quot;547&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;Xnip2025-03-11_10-42-56.jpg&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;保存&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;回到首页，刷新一下，瞬间干爽~~&lt;/p&gt;&lt;p style=&quot;box-sizing: inherit; margin-top: 0px; margin-bottom: 1em; padding: 0px; border: 0px; font-variant-numeric: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-stretch: inherit; font-size: 16px; line-height: inherit; font-family: HWOS, &amp;quot;Microsoft Yahei&amp;quot;, PingFangSC-Regular, &amp;quot;Microsoft Sans Serif&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline; cursor: url(&amp;quot;/zb_users/theme/waves/assets/img/text.svg&amp;quot;), auto; color: rgb(64, 75, 105); text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span class=&quot;boximg&quot; data-sub-html=&quot;宝塔面板8 去除首页推荐广告&quot; data-src=&quot;https://img.jz52.com/2023/11/02/dzuook-0.png&quot; style=&quot;box-sizing: inherit; margin: 0px; padding: 0px; border: 0px; font: inherit; scrollbar-color: rgba(89, 106, 137, 0.6) transparent; scrollbar-width: thin; vertical-align: baseline;&quot;&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2025/03/202503111741661131270717.jpg&quot; title=&quot;Xnip2025-03-11_10-43-15.jpg&quot; alt=&quot;Xnip2025-03-11_10-43-15.jpg&quot; width=&quot;700&quot; height=&quot;450&quot; border=&quot;0&quot; vspace=&quot;0&quot; style=&quot;width: 700px; height: 450px;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 11 Sep 2024 03:11:35 +0800</pubDate></item><item><title>IDEA2023 热部署插件JRebel激活：JRebel+XRebel 最新的 2024.3.0 激活方法</title><link>https://www.husw.net/post/1541.html</link><description>&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;IDEA上原生是不支持热部署的，当我们修改代码和配置文件等大部分操作时，都需要重启服务器。&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;JRebel是一款JAVA&lt;span class=&quot;mod-overview__keyword&quot; style=&quot;overflow-wrap: break-word; margin: 0px 4px; cursor: pointer; color: #0052D9; padding-right: 10px; background-image: url(&amp;quot;images/icon-keyword_32a.svg&amp;quot;); background-position: right 2px; background-repeat: no-repeat; background-size: 8px 8px; box-shadow: none; box-sizing: border-box; list-style: inherit; word-break: break-all;&quot;&gt;虚拟机&lt;/span&gt;插件，它使得JAVA程序员能在不进行重部署的情况下，即时看到代码的改变对一个应用程序带来的影响。JRebel使你能即时分别看到代码、类和资源的变化，从而跳过了构建和部署的过程，可以省去大量的部署用的时间。&lt;/p&gt;&lt;blockquote style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 0px 0px 24px; padding: 0px 15px; color: rgb(119, 119, 119); border-left: 4px solid rgb(221, 221, 221); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px;&quot;&gt;目前对于idea热部署最好的解决方案就是安装JRebel。&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;XRebel 是不间断运行在 web 应用的交互式分析器，当发现问题会在浏览器中显示警告信息。XRebel 会实时监测应用代码的性能指标和可能会发生的问题。&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;官方文档：&lt;/p&gt;&lt;blockquote style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 0px 0px 24px; padding: 0px 15px; color: rgb(119, 119, 119); border-left: 4px solid rgb(221, 221, 221); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p&gt;https://manuals.jrebel.com/jrebel/index.html&lt;/p&gt;&lt;/blockquote&gt;&lt;ul class=&quot;ul-level-0 list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; font-size: 16px; white-space-collapse: preserve; overflow-wrap: break-word; box-sizing: border-box; list-style: inherit;&quot;&gt;&lt;span style=&quot;color: #4EA1DB; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 18px; font-variant-ligatures: no-common-ligatures; background-color: #FFFFFF;&quot;&gt;Idea + Jrebel 插件安装 &lt;/span&gt;&lt;/strong&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;chnkm&quot; name=&quot;%E5%AE%89%E8%A3%85JRebel/XRebel&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px 8px; padding: 0px; font-size: 16px; box-sizing: border-box; list-style: inherit; line-height: 26px; font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit;&quot;&gt;安装JRebel/XRebel&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;1.通过IDEA插件仓库查询JRebel即可，这俩个插件是绑定在一起下载的，如图。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211307174187158717637.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.由于该插件为收费，我们需要对插件进行激活&lt;/p&gt;&lt;ul class=&quot;ul-level-0 list-paddingleft-2&quot; style=&quot;list-style-type: none;&quot;&gt;&lt;li&gt;&lt;p&gt;依次进入&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px; word-break: break-all;&quot;&gt;help-&amp;gt;Jrebel-&amp;gt;Activation&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;服务器地址：&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px; word-break: break-all;&quot;&gt;https://jrebel.qekang.com/{GUID}&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;生成GUID：在线GUID地址&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;将服务器地址与GUID拼接后填入&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px; word-break: break-all;&quot;&gt;Team URL&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;点击&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px; word-break: break-all;&quot;&gt;CHANGE LICENSE&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;到此，JRebel就激活完成了。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211308174187158828957.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211308174187158874474.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;e237c&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px 8px; padding: 0px; font-size: 16px; box-sizing: border-box; list-style: inherit; line-height: 26px; font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;/h3&gt;&lt;h3 id=&quot;ag6qe&quot; name=&quot;%E8%AE%BE%E7%BD%AEJRebel&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px 8px; padding: 0px; font-size: 16px; box-sizing: border-box; list-style: inherit; line-height: 26px; font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit;&quot;&gt;设置JRebel&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;1.设置为离线工作模式，点击&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; word-break: break-all; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px;&quot;&gt;WORK OFFLICE&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211308174187158828180.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;也可更改JRebel的自动刷新间隔&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.为IDEA设置自动编译（一般默认就是自动编译）&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211309174187158973722.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;在&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; word-break: break-all; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px;&quot;&gt;advanced setting&lt;/code&gt;勾选&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; word-break: break-all; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px;&quot;&gt;Allow auto -make…&lt;/code&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211309174187158988540.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;7crfe&quot; name=&quot;%E5%AF%B9%E9%A1%B9%E7%9B%AE%E8%BF%9B%E8%A1%8C%E7%83%AD%E9%83%A8%E7%BD%B2&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px 8px; padding: 0px; font-size: 16px; box-sizing: border-box; list-style: inherit; line-height: 26px; font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit;&quot;&gt;对项目进行热部署&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;1.打开下面的JRebel，选择需要进行热部署的服务&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211310174187159033312.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.在SpringBoot项目中，选择更新类和资源&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211310174187159019769.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;3.使用JRebel+XRebel(若仅需要热部署，可选择JRebel)启动项目，而不是原生启动&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211310174187159012343.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;4.当本地有多个微服务时，在service中选择所有的微服务，并使用JRebel启动&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211311174187159125779.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;这样，当任何一个服务中的代码改变时，直接&lt;code style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; word-break: break-all; display: inline-block; margin-left: 10px; margin-right: 10px; background-color: rgb(243, 245, 249); border-radius: 0px; padding: 0px 12px; color: rgb(10, 191, 91); font-family: Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, Courier, &amp;quot;Microsoft Yahei&amp;quot;, monospace; line-height: 20px;&quot;&gt;Ctrl+Shift+F9&lt;/code&gt;，JRebel将会监测到代码改变并且Reload，可以继续愉快地继续开发了，避免了重新启动服务器，等待几十秒的时间。&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211311174187159126768.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;h3 id=&quot;658kn&quot; name=&quot;%E4%BD%BF%E7%94%A8XRebel%E6%80%A7%E8%83%BD%E5%88%86%E6%9E%90&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px 8px; padding: 0px; font-size: 16px; box-sizing: border-box; list-style: inherit; line-height: 26px; font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;strong style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit;&quot;&gt;使用XRebel性能分析&lt;/strong&gt;&lt;/h3&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;1.XRebel访问&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;项目启动后访问地址为：服务器项目应用地址/xrebel&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;例如：http://localhost:8080/xrebel&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.激活XRebel&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;激活方式同JRebel&lt;/p&gt;&lt;p style=&quot;overflow-wrap: break-word; margin-top: 0px; margin-bottom: 8px; padding: 0px; box-sizing: border-box; list-style: inherit; min-height: 24px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;3.功能&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 270.609px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 270.609px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211311174187159193007.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 270.609px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;ol class=&quot;ol-level-0 list-paddingleft-2&quot; style=&quot;overflow-wrap: break-word; margin-bottom: 16px; padding: 0px 0px 0px 6px; box-sizing: border-box; list-style-position: inside; list-style-image: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;li&gt;&lt;p&gt;能够捕捉到应用运行时发生的异常&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;能够详细的观察某每一次的调用，而且能够非常详细的观察各个步骤的执行时间&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;每个步骤还可以看到详细的源码执行流程&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;在数据库操作上能够看到具体的耗时和格式化后的SQL语句&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;可以查看详细的系统执行日志，可以下载到本地&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;不仅支持单机模式下，还可以应用于微服务分布式&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211311174187159110010.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;figure class=&quot;&quot; style=&quot;overflow-wrap: break-word; box-sizing: border-box; list-style: inherit; margin: 16px 0px; color: rgb(51, 51, 51); font-family: &amp;quot;pingfang SC&amp;quot;, &amp;quot;helvetica neue&amp;quot;, arial, &amp;quot;hiragino sans gb&amp;quot;, &amp;quot;microsoft yahei ui&amp;quot;, &amp;quot;microsoft yahei&amp;quot;, simsun, sans-serif; white-space: pre-wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;div class=&quot;rno-markdown-img-url&quot; style=&quot;overflow-wrap: break-word; margin: 16px 0px; padding: 0px; box-sizing: border-box; text-align: center; list-style: inherit;&quot;&gt;&lt;div class=&quot;rno-markdown-img-url-inner&quot; style=&quot;overflow-wrap: break-word; margin: 0px auto; padding: 0px; box-sizing: border-box; position: relative; display: inline-block; list-style: inherit; width: 996px; white-space-collapse: collapse !important;&quot;&gt;&lt;div style=&quot;overflow-wrap: break-word; margin: 0px; padding: 0px; box-sizing: border-box; list-style: inherit; width: 996px;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211312174187159227245.png&quot; style=&quot;overflow-wrap: break-word; border: 0px; box-sizing: border-box; list-style: inherit; cursor: zoom-in; width: 996px; height: auto; display: block; margin: 0px auto; max-width: 100%; max-height: 100%; border-radius: 3px;&quot;/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/figure&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;div class=&quot;toc&quot; style=&quot;box-sizing: border-box; outline: 0px; margin: 0px 0px 24px; padding: 0px; font-synthesis-style: auto; overflow-wrap: break-word; font-size: 18px; line-height: 24px; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;br/&gt;&lt;/h4&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;两种方式轻松激活 jrebel 2024.3.0+&amp;nbsp; &amp;nbsp;&lt;/h4&gt;&lt;ul style=&quot;list-style-type: none;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;ul style=&quot;list-style-type: circle;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#Jrebel_idea_20&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;Jrebel 采用试用的方式：通过采集机器码、取idea、插件等信息方式生成试用密钥。&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#_21&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;方法：&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#_java_32&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;注意： *本方法主要是运用到在线运行java源码的能力&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#_30&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;试用期到期,可循环以上操作达到无限使用的目的。&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#_9&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;问题:&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#_12&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;解决方法:&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#1___8&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;1. 在线激活 （推荐）&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href=&quot;https://blog.csdn.net/qq251708339/article/details/134105044#2___19&quot; rel=&quot;nofollow&quot; target=&quot;_self&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; text-decoration-line: none; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;2. 无限试用激活 （稳定）&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;&lt;/div&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; padding: 16px; margin: 0px 0px 24px; color: rgba(0, 0, 0, 0.5); border-left: 8px solid rgb(221, 223, 228); background: rgb(238, 240, 244); overflow: auto; font-synthesis-style: auto; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; user-select: auto !important; word-break: break-word !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 14px; color: rgb(85, 86, 102); line-height: 22px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;重新修改了激活服务代码，增加离线模式验证，又可以愉快使用了&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 20px; color: rgb(79, 79, 79); line-height: 30px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t1&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;Idea__Jrebel___2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;Idea + Jrebel 插件安装 略…&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211312174187159256674.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; font-synthesis-style: auto; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211313174187159325594.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; font-synthesis-style: auto; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t2&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;1___8&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;1. 在线激活 （推荐）&lt;/h3&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t3&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_9&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;问题:&lt;/h4&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;用新不用旧，老版的插件连最新的springboot3 都不支持&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;激活服务器提示： Ls client not configured&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t4&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_12&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;解决方法:&lt;/h4&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;访问： https://www.jpy.wang/page/jrebel.html&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; outline: 0px; margin-top: 0px; margin-bottom: 16px; padding: 0px; font-size: 16px; color: rgb(77, 77, 77); line-height: 26px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211313174187159333103.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; font-synthesis-style: auto; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;使用说明
Jrebel&amp;nbsp;License&amp;nbsp;Server!&amp;nbsp;(兼容&amp;nbsp;2023.4.0&amp;nbsp;+)
JRebel&amp;nbsp;激活地址:&amp;nbsp;http://42.193.18.168:8088/b22e836a-667c-493c-8df3-d8a2336612ac
JRebel&amp;nbsp;激活邮箱:&amp;nbsp;169380491@qq.com
JRebel&amp;nbsp;无限试用，请将以下内容拷贝到命令提示符中执行:
curl&amp;nbsp;https://register.jpy.wang/ReRegister/src/main/java/jrebel/JrebelMain.java&amp;nbsp;-o&amp;nbsp;tmp.java&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;java&amp;nbsp;tmp.java&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;del&amp;nbsp;tmp.java&lt;/pre&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;2.在jrebel激活的时候填写相应的地址&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211313174187159332769.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; font-synthesis-style: auto; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211313174187159393159.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; font-synthesis-style: auto; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 18px; color: rgb(79, 79, 79); line-height: 28px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t5&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;2___19&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;2. 无限试用激活 （稳定）&lt;/h3&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t6&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;Jrebel_idea_20&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;Jrebel 采用试用的方式：通过采集机器码、取idea、插件等信息方式生成试用密钥。&lt;/h4&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t7&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_21&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;方法：&lt;/h4&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;访问： https://www.jpy.wang/page/jrebel.html , 获得下面命令行&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;curl&amp;nbsp;https://register.jpy.wang/ReRegister/src/main/java/jrebel/JrebelMain.java&amp;nbsp;-o&amp;nbsp;tmp.java&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;java&amp;nbsp;tmp.java&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;del&amp;nbsp;tmp.java1&lt;/pre&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol start=&quot;2&quot; style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;复制到命令提示符进行执行 : (运行(win+r) -&amp;gt; cmd -&amp;gt; 粘贴上面命令) ,&lt;br style=&quot;box-sizing: border-box; outline: 0px; user-select: auto !important; font-synthesis-style: auto; overflow-wrap: break-word;&quot;/&gt;&lt;img src=&quot;https://www.husw.net/zb_users/upload/2025/03/20250313211314174187159481753.png&quot; alt=&quot;在这里插入图片描述&quot; style=&quot;box-sizing: border-box; outline: none; user-select: auto !important; border: 0px none; margin: auto; max-width: 100%; font-synthesis-style: auto; overflow-wrap: break-word; display: block; cursor: zoom-in;&quot;/&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol start=&quot;3&quot; style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;点击 Get License 按钮进行一键激活， 程序会自动虚拟设备id和环境，获取试用key并存入idea 插件的缓存目录里。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol start=&quot;4&quot; style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;重启 idea , 点同意即可正常jrebel插件。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;h5 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 24px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a id=&quot;_30&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;试用期到期,可循环以上操作达到无限使用的目的。&lt;/h5&gt;&lt;h4 style=&quot;box-sizing: border-box; outline: 0px; margin: 24px 0px 8px; padding: 0px; font-family: &amp;quot;PingFang SC&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, SimHei, Arial, SimSun; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; font-synthesis-style: auto; overflow-wrap: break-word; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot;&gt;&lt;a name=&quot;t8&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;&lt;a id=&quot;_java_32&quot; style=&quot;box-sizing: border-box; outline: none; margin: 0px; padding: 0px; font-weight: normal; cursor: pointer; background-color: transparent; color: rgb(78, 161, 219); font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot;&gt;&lt;/a&gt;注意： *本方法主要是运用到在线运行java源码的能力&lt;/h4&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;curl 命令需要 win10 或 win11，且建议使用 Windows专业版。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol start=&quot;2&quot; style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;需要jdk11 以上&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;blockquote style=&quot;box-sizing: border-box; outline: 0px; padding: 16px; margin: 0px 0px 24px; color: rgba(0, 0, 0, 0.5); border-left: 8px solid rgb(221, 223, 228); background: rgb(238, 240, 244); overflow: auto; font-synthesis-style: auto; overflow-wrap: break-word; font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-size: 16px; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; user-select: auto !important; word-break: break-word !important;&quot;&gt;&lt;ol style=&quot;box-sizing: border-box; outline: 0px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 14px; overflow: auto hidden; line-height: 22px; font-synthesis-style: auto; overflow-wrap: break-word; user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;特性 (shell) , 通过curl 下载源码并传递源码文件给java执行，无需编译class，直接跑UI。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;特性 (java.net.http.HttpRequest) , 无需三方库jdk自带网络请求类，减小代码体积。&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol start=&quot;3&quot; style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;如果系统里有多版本jdk，可以修改上面的命令&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;pre class=&quot;prism-highlight prism-language-bash&quot;&gt;curl&amp;nbsp;https://register.jpy.wang/ReRegister/src/main/java/jrebel/JrebelMain.java&amp;nbsp;-o&amp;nbsp;tmp.java&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;c:/jdk-11/bin/java&amp;nbsp;tmp.java&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;del&amp;nbsp;tmp.java1&lt;/pre&gt;&lt;ul style=&quot;box-sizing: border-box; outline: 0px; margin-bottom: 24px; padding: 0px; list-style-position: initial; list-style-image: initial; --el-button-hover-bg-color: #6D5FFD; --el-button-hover-border-color: #6D5FFD; --el-button-active-bg-color: #6D5FFD; --el-button-active-border-color: #6D5FFD; font-size: 16px; overflow: auto hidden; font-synthesis-style: auto; overflow-wrap: break-word; color: rgba(0, 0, 0, 0.75); font-family: -apple-system, &amp;quot;SF UI Text&amp;quot;, Arial, &amp;quot;PingFang SC&amp;quot;, &amp;quot;Hiragino Sans GB&amp;quot;, &amp;quot;Microsoft YaHei&amp;quot;, &amp;quot;WenQuanYi Micro Hei&amp;quot;, sans-serif; font-variant-ligatures: no-common-ligatures; text-wrap: wrap; background-color: rgb(255, 255, 255); user-select: auto !important;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;ol start=&quot;4&quot; style=&quot;list-style-type: square;&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;如果系统不支持curl命令，可将源码下载到本地，通过idea运行。(推荐在线跑源码,随作者保持更新)&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/ul&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 12 Aug 2024 17:39:52 +0800</pubDate></item><item><title>vue报错Uncaught TypeError: this.$el.querySelectorAll is not a function的错误原因</title><link>https://www.husw.net/post/1539.html</link><description>&lt;p&gt;在使用 vue-admin-template 构建项目时，控制台一直报错如下代码：&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2024/08/202408051722866160202633.jpg&quot; width=&quot;700&quot; height=&quot;623&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;width: 700px; height: 623px;&quot;/&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;[Vue&amp;nbsp;warn]:&amp;nbsp;Error&amp;nbsp;in&amp;nbsp;render:&amp;nbsp;&amp;quot;TypeError:&amp;nbsp;Cannot&amp;nbsp;read&amp;nbsp;properties&amp;nbsp;of&amp;nbsp;null&amp;nbsp;(reading&amp;nbsp;&amp;#39;map&amp;#39;)&amp;quot;

found&amp;nbsp;in

---&amp;gt;&amp;nbsp;&amp;lt;ElTableFooter&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ElTable&amp;gt;&amp;nbsp;at&amp;nbsp;packages/table/src/table.vue
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Index&amp;gt;&amp;nbsp;at&amp;nbsp;src/views/student/index.vue
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;AppMain&amp;gt;&amp;nbsp;at&amp;nbsp;src/layout/components/AppMain.vue
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Layout&amp;gt;&amp;nbsp;at&amp;nbsp;src/layout/index.vue
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;App&amp;gt;&amp;nbsp;at&amp;nbsp;src/App.vue
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;Root&amp;gt;

...(一共9条，这里省略)

Uncaught&amp;nbsp;TypeError:&amp;nbsp;this.$el.querySelectorAll&amp;nbsp;is&amp;nbsp;not&amp;nbsp;a&amp;nbsp;function
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;VueComponent.onScrollableChange&amp;nbsp;(element-ui.common.js:11611:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;eval&amp;nbsp;(element-ui.common.js:11545:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;Array.forEach&amp;nbsp;(&amp;lt;anonymous&amp;gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;TableLayout.notifyObservers&amp;nbsp;(element-ui.common.js:11539:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;TableLayout.updateElsHeight&amp;nbsp;(element-ui.common.js:11413:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;VueComponent.doLayout&amp;nbsp;(element-ui.common.js:13740:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;VueComponent.resizeListener&amp;nbsp;(element-ui.common.js:13735:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;eval&amp;nbsp;(resize-event.js:33:1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;Array.forEach&amp;nbsp;(&amp;lt;anonymous&amp;gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at&amp;nbsp;ResizeObserver.resizeHandler&amp;nbsp;(resize-event.js:32:1)&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;没有具体报错的文件，不好排查。&amp;nbsp;&lt;/p&gt;&lt;p&gt;精简代码到最小，&lt;span style=&quot;text-wrap: wrap;&quot;&gt;逐一&lt;/span&gt;排查后发现绑定数据 data 后报错，所以判断可能与数据 list 有关，&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-markup&quot;&gt;&amp;lt;el-table
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;v-loading=&amp;quot;listLoading&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;:data=&amp;quot;list&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;element-loading-text=&amp;quot;Loading&amp;quot;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;border
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fit
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;highlight-current-row
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;gt;&lt;/pre&gt;&lt;p&gt;查看 data 定义，&lt;span style=&quot;color: #212529; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;发现 li&lt;/span&gt;&lt;code style=&quot;box-sizing: border-box; font-family: var(--bs-font-monospace); font-size: 0.875em; color: var(--bs-code-color); overflow-wrap: break-word; text-wrap: wrap; background-color: rgb(255, 255, 255);&quot;&gt;st&amp;nbsp;&lt;/code&gt;&lt;span style=&quot;color: #212529; font-family: system-ui, -apple-system, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Noto Sans&amp;quot;, &amp;quot;Liberation Sans&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;, &amp;quot;Noto Color Emoji&amp;quot;; font-size: 16px; text-wrap: wrap; background-color: #FFFFFF;&quot;&gt;初始化定义为 null&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;//&amp;nbsp;table.vue

&amp;nbsp;&amp;nbsp;data()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list:&amp;nbsp;null,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;listLoading:&amp;nbsp;true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;},&lt;/pre&gt;&lt;p&gt;而 &lt;a href=&quot;https://element.eleme.cn/#/zh-CN/component/table&quot; target=&quot;_self&quot;&gt;Element-Ui 文档中 el-table&lt;/a&gt; 要求data的数据类型为 &lt;span style=&quot;color: #C00000;&quot;&gt;&lt;strong&gt;Array&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2024/08/202408051722867238478386.jpg&quot; title=&quot;Xnip2024-08-05_22-13-36.jpg&quot; alt=&quot;Xnip2024-08-05_22-13-36.jpg&quot; width=&quot;0&quot; height=&quot;&quot; border=&quot;0&quot; vspace=&quot;0&quot; style=&quot;width: 0px;&quot;/&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2024/08/202408051722867238478386.jpg&quot; width=&quot;700&quot; height=&quot;414&quot; border=&quot;0&quot; vspace=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; style=&quot;width: 700px; height: 414px;&quot;/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;修改list&lt;span style=&quot;text-wrap: wrap;&quot;&gt;的数据类型为 array后，问题完美解决！&lt;/span&gt;&lt;span style=&quot;background-color: #F8F8F8;&quot;&gt;//&amp;nbsp;table.vue&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;prism-highlight prism-language-javascript&quot;&gt;//&amp;nbsp;table.vue

&amp;nbsp;&amp;nbsp;data()&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;list:&amp;nbsp;[],&amp;nbsp;//修改数据类型为数组
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;listLoading:&amp;nbsp;true
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
&amp;nbsp;&amp;nbsp;},&lt;/pre&gt;&lt;p&gt;&lt;span style=&quot;text-wrap: wrap;&quot;&gt;&lt;/span&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 05 Aug 2024 21:49:00 +0800</pubDate></item><item><title>博客数据丢失，恢复很早以前的备份</title><link>https://www.husw.net/post/1540.html</link><description>&lt;p&gt;&lt;img class=&quot;ue-image&quot; src=&quot;https://www.husw.net/zb_users/upload/2024/07/202407191721369556224619.jpg&quot;/&gt;&lt;/p&gt;&lt;p&gt;由于自己的疏忽和接入商的误操作，导致服务器数据丢失。&amp;nbsp; 好在没有什么特别重要的东西。 博客丢了几年的数据，但文章并不多，这几年没有好好写博。&lt;/p&gt;&lt;p&gt;翻出来18年前的备份，恢复到 Zblog上试试。&lt;/p&gt;</description><pubDate>Fri, 19 Jul 2024 22:35:33 +0800</pubDate></item></channel></rss>