<?xml version="1.0" encoding="utf-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Cristian_Ng</title><link>https://go.cristianng.xyz/blog/</link><description>浮生有梦三千场，穷尽千里诗酒荒。</description><item><title>单独设置网站目录下某文件夹的PHP版本</title><link>https://go.cristianng.xyz/blog/?id=166</link><description>&lt;p&gt;伪静态设置：&lt;/p&gt;&lt;pre class=&quot;brush:php;toolbar:false&quot;&gt;location&amp;nbsp;/user/&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include&amp;nbsp;enable-php-74.conf;
}
location&amp;nbsp;/supplier/&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include&amp;nbsp;enable-php-74.conf;
}
location&amp;nbsp;/warehouse/&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include&amp;nbsp;enable-php-74.conf;
}&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 23 Mar 2026 09:04:53 +0800</pubDate></item><item><title>编程常见命名规范</title><link>https://go.cristianng.xyz/blog/?id=165</link><description>&lt;h1 id=&quot;h01&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;01、驼峰式&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;驼峰命名法（Camel Case）不同单词之间没有分隔符，采用大小写混合的方式区分不同单词。&lt;/p&gt;&lt;h2 id=&quot;h1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;1.小驼峰&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果第一个单词首字母小写，称为小驼峰（camelCase）。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981316722017.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;h2 id=&quot;h2&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;2.大驼峰&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果第一个单词首字母大写，称为大驼峰（CamelCase）。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;注意：大驼峰命名法还有一个名字，叫 Pascal 命名法。这是因为该命名规范最早由 Niklaus Wirth 在 1970 年代提出，以纪念法国数学家和物理学家 Blaise Pascal（1623年-1662年）。Pascal 是一位重要的数学家和自然科学家，对于概率论、流体力学和计算器的发明有重要贡献。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;驼峰式是一种非常流行的将单词组合成单个概念的方式。在许多语言中（如 Java、JavaScript、C#），小驼峰常被用来命名局部变量和函数，大驼峰常用来命名全局变量和类。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 id=&quot;h02&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981331369048.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 id=&quot;h02&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;02、蛇形式&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;蛇形命名法（Snake Case）使用下划线分隔不同单词。&lt;/p&gt;&lt;h2 id=&quot;h1-1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;1.小蛇式&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果所有单词都小写，称为小蛇式（snake_case）。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;小蛇式通常用于声明数据库字段名。此外，URL 参数一般也使用 snake_case。在某些 API 设计中，如果要将参数值直接表示在 URL 中，可以使用 snake_case。例如 https://api.example.com/users?sort_order=desc&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;h2-1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981349842559.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 id=&quot;h2-1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;2.大蛇式&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果所有单词都大写，称为大蛇式（SCREAMING_SNAKE_CASE）。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;之所以加个 screaming，因为在英文中，如果一个单词全部大写，表示大声喊叫，引起他人的注意。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;大蛇式通常用于宏定义和被许多语言用来命名常量。&lt;/p&gt;&lt;h2 id=&quot;h3&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;3.帕斯卡蛇形式&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果所有单词首字母都大写，称为帕斯卡蛇形式（Pascal_Snake_Case）。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;Pascal_Snake_Case 是将两种命名方式组合而成的一种命名风格。它是由 Pascal Case（帕斯卡命名法）和 Snake Case（蛇形命名法）组合而成。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;这种命名方式在实际开发中较少使用，因为它将两种不同的命名风格结合在一起，可能会导致命名混乱，降低代码的可读性和一致性。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 id=&quot;h03&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;03、烤串式&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;烤串命名法（Kebab Case）使用中划线分隔不同单词。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;烤串命名法使用中划线连接多个单词，从而形成一个字符串。由于这种连接方式形象地类似于烤肉串，因此取名为烤串命名法。&lt;/p&gt;&lt;h2 id=&quot;h1-2&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981379249693.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;/h2&gt;&lt;h2 id=&quot;h1-2&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;1.小烤串式&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果所有单词都小写，称之为小烤串式（kebab-case）。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;小烤串式在 Lisp 编程语言中经常被用到，所以有时也叫做 lisp-case。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;URL 路径中经常使用小烤串式。例如 http://www.blog.com/cool-article-1。这是一种很好的、干净的、可读的单词组合方式。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;我们在 K8S 的资源配置文件中也会看到 kebab-case。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;此外，在 CSS 中，所有属性名称和大多数关键字值也主要采用 kebab-case 格式。&lt;/p&gt;&lt;h2 id=&quot;h2-2&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;2.大烤串式&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果所有单词都大写，称之为大烤串式（SCREAMING-KEBAB-CASE）。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;大烤串式主要用于突出强调被命名的对象，古老的 Cobol 编程语言中经常使用，所以有时也被称为 COBOL-CASE。&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 id=&quot;h3http&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;3.HTTP 头式&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果所有单词首字母都大写，称之为 HTTP 头式（HTTP-Header-Case）。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;因为 HTTP 头部字段的命名使用这种方式，所以称之为 HTTP 头式，如 Content-Type、User-Agent 等。&lt;/p&gt;&lt;h1 id=&quot;h04&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;04、匈牙利命名法&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;匈牙利命名法（Hungarian notation）是早期的规范，由微软程序员查尔斯-西蒙尼（Charles Simonyi）发明，因其为匈牙利人，故被称为匈牙利命名法。&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;匈牙利命名法要求标识符使用一个小写前缀来表示变量的类型或用途。按照在微软中的使用场景，分为匈牙利应用命名法和匈牙利系统命名法。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;匈牙利应用命名法指在微软软件产品中使用的匈牙利命名法，比如 Word、Excel 和其他应用程序。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;匈牙利系统命名法是指在 Windows 操作系统中使用的匈牙利命名法，因 Windows API 而被大家熟知。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981426797207.png&quot; alt=&quot;image.png&quot;/&gt;&lt;br/&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;匈牙利系统命名法在匈牙利应用命名法之后出现，二者的区别主要在于前缀的目的不同。&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;还有其他更多的前缀是根据微软自己的 MFC/句柄/控件/结构等东西定义的，就不过多描述了。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;匈牙利应用命名法的前缀主要目的是力求对逻辑数据类型而非物理数据类型进行编码，也就是提示变量的目的是什么，或者它代表什么。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981439472882.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;Simonyi 提出的大多数（但不是全部）前缀本质上是语义的，现在来看，一些前缀也表示物理数据类型，例如以 Null 做结尾的字符串使用 sz 前缀。然而，这些前缀仍然是语义上的，因为 Simonyi 的想法是使用语义化的前缀来表示变成语言的类型系统无法表达的逻辑上数据类型。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;Simonyi 建议的大多数前缀都是自然语义的，但不是所有。下面几个是来自微软官方文档。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa260976(v=vs.60)&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;pX 指向另一个X类型的指针，这包含非常少的语义信息。&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;d 是一个前缀表示两个值的区别，例如，dY可能代表一个图形沿Y轴的距离，而一个仅仅叫做y的变量可能是一个绝对坐标。这完全是自然语义的。&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;sz 是一个无结束或零结束的字符串。在 C 中，这包含一些语义信息，因为C语言的char*类型的变量不确定是一个指向单个字符的指针，还是一个字符数组，或是一个零结束字符串。&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;w 标记一个变量是一个字。这基本上没有包含什么语义信息，因此可以被看作一种匈牙利系统命名法。&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;b 表示一个字节，和w对比可能有一些语义信息，因为C语言中，只有char型（以及signed/unsigned char)是一个字节长的，这些类型有时候被用来保存数值而非字符。这个前缀可以明确某个变量保存的是字符还是数值。&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;在使用匈牙利应用命名法的代码中有时候也可能包含匈牙利系统命名法，即在描述被单独以类型方式定义的变量时使用。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;匈牙利命名法在 C++ 中被扩展而包含变量的作用域，由一个下划线隔开。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981451826435.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;匈牙利命名法是一个十分复杂繁琐的命名规范，它诞生在 IDE 还不够发达的年代。在那个年代，当代码量很多的时候，想要确定一个变量的类型很麻烦，不像现在 IDE 都会给提示，所以才产生了匈牙利命名法，现在已经很少使用了。&lt;/p&gt;&lt;hr style=&quot;box-sizing: border-box; margin: 1.5rem 0px; padding: 0px; border-style: dashed none none; border-top-color: rgb(165, 165, 165); border-right-width: initial; border-right-color: initial; border-left-width: initial; border-left-color: initial; border-image: initial; border-bottom-width: initial; border-bottom-color: initial; height: 1px; font-size: 16px; color: inherit; line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;/&gt;&lt;h1 id=&quot;h&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;常见命名规则以及适用场景&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这里只介绍 3 种最常见的命名规范。&lt;/p&gt;&lt;h2 id=&quot;hcamelcase&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;驼峰命名法（CamelCase）&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;驼峰命名法应该我们最常见的一个，这种命名方式使用大小写混合的格式来区别各个单词，并且单词之间不使用空格隔开或者连接字符连接的命名方式&lt;/p&gt;&lt;h2 id=&quot;hcamelcase-1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;大驼峰命名法（CamelCase）&lt;/span&gt;&lt;/h2&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-weight: bold; color: inherit; font-size: inherit; line-height: inherit;&quot;&gt;类名需要使用大驼峰命名法（UpperCamelCase）&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;正例：ServiceDiscovery、ServiceInstance、LruCacheFactory&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;反例：serviceDiscovery、Serviceinstance、LRUCacheFactory&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;hlowercamelcase&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;小驼峰命名法（lowerCamelCase）&lt;/span&gt;&lt;/h2&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-weight: bold; color: inherit; font-size: inherit; line-height: inherit;&quot;&gt;方法名、参数名、成员变量、局部变量需要使用小驼峰命名法（lowerCamelCase）。&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;正例：getUserInfo()、createCustomThreadPool()、setNameFormat(String nameFormat)、Uservice userService;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;反例：GetUserInfo()、CreateCustomThreadPool()、setNameFormat(String NameFormat)、Uservice user_service&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;hsnake_case&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;蛇形命名法（snake_case）&lt;/span&gt;&lt;/h2&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-weight: bold; color: inherit; font-size: inherit; line-height: inherit;&quot;&gt;测试方法名、常量、枚举名称需要使用蛇形命名法（snake_case）&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;在蛇形命名法中，各个单词之间通过下划线“_”连接，比如should_get_200_status_code_when_request_is_valid、CLIENT_CONNECT_SERVER_FAILURE。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;蛇形命名法的优势是命名所需要的单词比较多的时候，比如我把上面的命名通过小驼峰命名法给大家看一下：“shouldGet200StatusCodoWhenRequestIsValid”。感觉如何？ 相比于使用蛇形命名法（snake_case）来说是不是不那么易读？&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;正例：&lt;/p&gt;&lt;/blockquote&gt;&lt;pre style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; background-color: rgb(255, 255, 255); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important;&quot;&gt;&lt;code class=&quot;hljs java&quot; style=&quot;box-sizing: border-box; margin: 0px 2px; padding: 0.5em; font-size: 14px; color: rgb(220, 220, 220); line-height: 18px; border-radius: 0px; background: rgb(30, 30, 30); display: block; overflow-x: auto; letter-spacing: 0px; overflow-wrap: normal !important; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important; word-break: normal !important; overflow-y: auto !important;&quot;&gt;&lt;span class=&quot;hljs-meta&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #9B9B9B; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;@Test&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;should_get_200_status_code_when_request_is_valid&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;()&lt;/span&gt;&amp;nbsp;&lt;/span&gt;{&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;......&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;反例：&lt;/p&gt;&lt;/blockquote&gt;&lt;pre style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; background-color: rgb(255, 255, 255); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important;&quot;&gt;&lt;code class=&quot;hljs java&quot; style=&quot;box-sizing: border-box; margin: 0px 2px; padding: 0.5em; font-size: 14px; color: rgb(220, 220, 220); line-height: 18px; border-radius: 0px; background: rgb(30, 30, 30); display: block; overflow-x: auto; letter-spacing: 0px; overflow-wrap: normal !important; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important; word-break: normal !important; overflow-y: auto !important;&quot;&gt;&lt;span class=&quot;hljs-meta&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #9B9B9B; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;@Test&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;void&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;shouldGet200StatusCodoWhenRequestIsValid&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;()&lt;/span&gt;&amp;nbsp;&lt;/span&gt;{&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;......&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&quot;hkebabcase&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;串式命名法（kebab-case）&lt;/span&gt;&lt;/h2&gt;&lt;ul style=&quot;box-sizing: border-box; padding: 0px 0px 0px 32px; list-style-position: initial; list-style-image: initial; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot; class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;strong style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-weight: bold; color: inherit; font-size: inherit; line-height: inherit;&quot;&gt;在串式命名法中，各个单词之间通过下划线“-”连接，比如dubbo-registry。&lt;/strong&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;建议项目文件夹名称使用串式命名法（kebab-case），比如 dubbo 项目的各个模块的命名是下面这样的。&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1 id=&quot;h-1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981482174014.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/span&gt;&lt;/h1&gt;&lt;h1 id=&quot;h-1&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;常见命名规范&lt;/span&gt;&lt;/h1&gt;&lt;h2 id=&quot;hjava&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;Java 语言基本命名规范&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1.类名需要使用大驼峰命名法（UpperCamelCase）风格。方法名、参数名、成员变量、局部变量需要使用小驼峰命名法（lowerCamelCase）。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.测试方法名、常量、枚举名称需要使用蛇形命名法（snake_case） ，比如should_get_200_status_code_when_request_is_valid、CLIENT_CONNECT_SERVER_FAILURE。并且，测试方法名称要求全部小写，常量以及枚举名称需要全部大写。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3.项目文件夹名称使用串式命名法（kebab-case），比如dubbo-registry。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;4.包名统一使用小写，尽量使用单个名词作为包名，各个单词通过 &amp;quot;.&amp;quot; 分隔符连接，并且各个单词必须为单数。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;正例： org.apache.dubbo.common.threadlocal&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;/&gt;反例： org.apache.dubbo.common.threadLocal&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;5.抽象类命名使用 Abstract 开头。&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; background-color: rgb(255, 255, 255); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important;&quot;&gt;&lt;code class=&quot;hljs java&quot; style=&quot;box-sizing: border-box; margin: 0px 2px; padding: 0.5em; font-size: 14px; color: rgb(220, 220, 220); line-height: 18px; border-radius: 0px; background: rgb(30, 30, 30); display: block; overflow-x: auto; letter-spacing: 0px; overflow-wrap: normal !important; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important; word-break: normal !important; overflow-y: auto !important;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #57A64A; line-height: inherit; font-style: italic; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;//为远程传输部分抽象出来的一个抽象类（出处：Dubbo源码）&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;abstract&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-class&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #B8D7A3; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #DCDCDC; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;AbstractClient&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #DCDCDC; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;AbstractEndpoint&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;implements&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #DCDCDC; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;Client&lt;/span&gt;&amp;nbsp;&lt;/span&gt;{&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;6.异常类命名使用 Exception 结尾。&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; background-color: rgb(255, 255, 255); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important;&quot;&gt;&lt;code class=&quot;hljs java&quot; style=&quot;box-sizing: border-box; margin: 0px 2px; padding: 0.5em; font-size: 14px; color: rgb(220, 220, 220); line-height: 18px; border-radius: 0px; background: rgb(30, 30, 30); display: block; overflow-x: auto; letter-spacing: 0px; overflow-wrap: normal !important; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important; word-break: normal !important; overflow-y: auto !important;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #57A64A; line-height: inherit; font-style: italic; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;//自定义的&amp;nbsp;NoSuchMethodException（出处：Dubbo源码）&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-class&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #B8D7A3; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #DCDCDC; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;NoSuchMethodException&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;extends&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #DCDCDC; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;RuntimeException&lt;/span&gt;&amp;nbsp;&lt;/span&gt;{&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;private&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;static&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;final&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;long&lt;/span&gt;&amp;nbsp;serialVersionUID&amp;nbsp;=&amp;nbsp;-&lt;span class=&quot;hljs-number&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #B8D7A3; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;2725364246023268766L&lt;/span&gt;;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;NoSuchMethodException&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;()&lt;/span&gt;&amp;nbsp;&lt;/span&gt;{&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;super&lt;/span&gt;();&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;NoSuchMethodException&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;(String&amp;nbsp;msg)&lt;/span&gt;&amp;nbsp;&lt;/span&gt;{&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;super&lt;/span&gt;(msg);&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;7.测试类命名以它要测试的类的名称开始，以 Test 结尾。&lt;/p&gt;&lt;pre style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; background-color: rgb(255, 255, 255); font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important;&quot;&gt;&lt;code class=&quot;hljs cpp&quot; style=&quot;box-sizing: border-box; margin: 0px 2px; padding: 0.5em; font-size: 14px; color: rgb(220, 220, 220); line-height: 18px; border-radius: 0px; background: rgb(30, 30, 30); display: block; overflow-x: auto; letter-spacing: 0px; overflow-wrap: normal !important; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif !important; word-break: normal !important; overflow-y: auto !important;&quot;&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #57A64A; line-height: inherit; font-style: italic; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;//为&amp;nbsp;AnnotationUtils&amp;nbsp;类写的测试类（出处：Dubbo源码）&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-class&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #B8D7A3; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #569CD6; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;class&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: #DCDCDC; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;&gt;AnnotationUtilsTest&lt;/span&gt;&amp;nbsp;{&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&amp;nbsp;&amp;nbsp;......&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;}&lt;br style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit; overflow-wrap: inherit !important; word-break: inherit !important;&quot;/&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;POJO 类中布尔类型的变量，都不要加 is 前缀，否则部分框架解析会引起序列化错误。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;如果模块、接口、类、方法使用了设计模式，在命名时需体现出具体模式。&lt;/p&gt;&lt;h1 id=&quot;h-2&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.6em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;命名易读性规范&lt;/span&gt;&lt;/h1&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;1.为了能让命名更加易懂和易读，尽量不要缩写/简写单词，除非这些单词已经被公认可以被这样缩写/简写。比如 CustomThreadFactory 不可以被写成 ~~CustomTF 。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;2.命名不像函数一样要尽量追求短，可读性强的名字优先于简短的名字，虽然可读性强的名字会比较长一点。 这个对应我们上面说的第 1 点。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;3.避免无意义的命名，你起的每一个名字都要能表明意思。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;正例：UserService userService; int userCount;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;反例: UserService service int count&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;4.避免命名过长（50 个字符以内最好），过长的命名难以阅读并且丑陋。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;5.不要使用拼音，更不要使用中文。 注意：像 alibaba 、wuhan、taobao 这种国际通用名词可以当做英文来看待。&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; margin-top: 1em; margin-bottom: 1em; padding: 15px 15px 15px 1rem; position: relative; color: rgb(102, 102, 102); border-left-width: 6px; border-left-color: rgb(33, 152, 99); font-size: 0.8em; line-height: inherit; background: rgb(247, 247, 247); overflow: auto; overflow-wrap: normal; word-break: normal; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;正例：discount&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;反例：dazhe&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;hcodelf&quot; style=&quot;box-sizing: border-box; margin: 1.5em 0px; padding: 0px; font-size: 1.4em; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;span style=&quot;box-sizing: border-box; margin: 0px; padding: 0px; font-size: inherit; color: inherit; line-height: inherit;&quot;&gt;Codelf:变量命名神器&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;这是一个由国人开发的网站，网上有很多人称其为变量命名神器， Guide 在实际使用了几天之后感觉没那么好用。小伙伴们可以自行体验一下，然后再给出自己的判断。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;Codelf 提供了在线网站版本，网址：https://unbug.github.io/codelf/，具体使用情况如下：&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;我选择了 Java 编程语言，然后搜索了“序列化”这个关键词，然后它就返回了很多关于序列化的命名。&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2026/02/202602251771981508395597.png&quot; alt=&quot;image.png&quot;/&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 1.5em; margin-bottom: 1.5em; padding: 0px; font-size: 16px; color: rgb(62, 62, 62); line-height: inherit; font-family: &amp;quot;PingFang SC&amp;quot;, Arial, &amp;quot;Material Icons Extended&amp;quot;, stonefont, iknow-qb_share_icons, review-iconfont, mui-act-font, fontAwesome, tm-detail-font, office365icons, MWF-MDL2, global-iconfont, Bowtie, sans-serif; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 25 Feb 2026 08:47:29 +0800</pubDate></item><item><title>Cloudflare R2 白嫖指南：10G存储+免流量费，打造免费图床</title><link>https://go.cristianng.xyz/blog/?id=164</link><description>&lt;p&gt;https://baijiahao.baidu.com/s?id=1830339255238678679&amp;amp;wfr=spider&amp;amp;for=pc&lt;/p&gt;</description><pubDate>Fri, 09 Jan 2026 14:45:49 +0800</pubDate></item><item><title>virtualbox虚拟机</title><link>https://go.cristianng.xyz/blog/?id=163</link><description>&lt;p&gt;https://www.virtualbox.org/wiki/Downloads&lt;/p&gt;</description><pubDate>Thu, 08 Jan 2026 15:17:02 +0800</pubDate></item><item><title>Homeassistant 二开</title><link>https://go.cristianng.xyz/blog/?id=162</link><description>&lt;p&gt;1、服务器建立ha文件夹；&lt;/p&gt;&lt;p&gt;2、指令创建HA容器，端口8123，路径镜像刚创建的ha文件夹；&lt;/p&gt;&lt;p&gt;3、下载hacs安装包，放到ha的指定文件夹中；&lt;/p&gt;&lt;p&gt;4、修改服务器关于github的host；&lt;/p&gt;&lt;p&gt;5、在HA的后台-设置-设备与服务-搜索HACS并安装；&lt;/p&gt;&lt;p&gt;6、在HACS的搜索xiaomi amiot并安装；&lt;/p&gt;&lt;p&gt;7、使用小米账号登录；&lt;/p&gt;</description><pubDate>Mon, 05 Jan 2026 11:38:22 +0800</pubDate></item><item><title>实战 HomeAssistant 基于 hass-xiaomi-miot 接入米家设备</title><link>https://go.cristianng.xyz/blog/?id=161</link><description>&lt;p&gt;https://cloud.tencent.com/developer/article/2332488&lt;/p&gt;</description><pubDate>Mon, 05 Jan 2026 11:26:00 +0800</pubDate></item><item><title>GitHub-Hosts</title><link>https://go.cristianng.xyz/blog/?id=160</link><description>&lt;p dir=&quot;auto&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 16px; color: rgb(31, 35, 40); font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Noto Sans&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; text-wrap-mode: wrap; background-color: rgb(255, 255, 255);&quot;&gt;通过修改Hosts解决Github抽风&lt;/p&gt;&lt;p&gt;&amp;nbsp; https://github.com/maxiaof/github-hosts&lt;br/&gt;&lt;/p&gt;</description><pubDate>Mon, 05 Jan 2026 11:20:33 +0800</pubDate></item><item><title>微信三开版(2025)</title><link>https://go.cristianng.xyz/blog/?id=159</link><description>&lt;p class=&quot;ue-upload&quot; style=&quot;line-height: 16px;&quot;&gt;&lt;img style=&quot;vertical-align: middle; margin-right: 2px;&quot; src=&quot;https://go.cristianng.xyz/blog/zb_system/image/filetype/rar.png&quot;/&gt;&lt;a style=&quot;font-size:12px; color:#0066cc;&quot; href=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2025/11/202511131762998719708720.rar&quot; title=&quot;微信三开版(2025).rar&quot;&gt;微信三开版(2025).rar&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Thu, 13 Nov 2025 09:51:28 +0800</pubDate></item><item><title>网页端调用exe程序并传递参数</title><link>https://go.cristianng.xyz/blog/?id=158</link><description>&lt;p&gt;网页端：&lt;br/&gt;&lt;/p&gt;&lt;pre class=&quot;brush:html;toolbar:false&quot;&gt;&amp;lt;a&amp;nbsp;class=&amp;quot;btn&amp;nbsp;btn-primary&amp;quot;&amp;nbsp;href=&amp;quot;mofangyunwms://type=makeform&amp;amp;code=&amp;lt;?php&amp;nbsp;echo&amp;nbsp;$o_code;?&amp;gt;&amp;amp;token=&amp;lt;?php&amp;nbsp;echo&amp;nbsp;$stoken;?&amp;gt;&amp;quot;&amp;gt;一键生成(本地需先注册启动路径)&amp;lt;/a&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;注册表：&lt;/p&gt;&lt;pre class=&quot;brush:bash;toolbar:false&quot;&gt;Windows&amp;nbsp;Registry&amp;nbsp;Editor&amp;nbsp;Version&amp;nbsp;5.00

[HKEY_CLASSES_ROOT\mofangyunwms]
@=&amp;quot;mofangyunwmsProtocol&amp;quot;
&amp;quot;URL&amp;nbsp;Protocol&amp;quot;=&amp;quot;&amp;quot;

[HKEY_CLASSES_ROOT\mofangyunwms\DefaultIcon]
@=&amp;quot;G:\\1\\1\\仓单信息表下载器.exe,1&amp;quot;

[HKEY_CLASSES_ROOT\mofangyunwms\shell]

[HKEY_CLASSES_ROOT\mofangyunwms\shell\open]

[HKEY_CLASSES_ROOT\mofangyunwms\shell\open\command]
@=&amp;quot;G:\\1\\1\\仓单信息表下载器.exe&amp;nbsp;\&amp;quot;%1\&amp;quot;&amp;quot;&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;p&gt;exe(VB6.0)&lt;/p&gt;&lt;pre class=&quot;brush:vb;toolbar:false&quot;&gt;CommandStr&amp;nbsp;=&amp;nbsp;Command()
If&amp;nbsp;CommandStr&amp;nbsp;&amp;lt;&amp;gt;&amp;nbsp;&amp;quot;&amp;quot;&amp;nbsp;Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;msgbox&amp;nbsp;CommandStr&amp;nbsp;
endif&lt;/pre&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Sat, 18 Oct 2025 16:13:23 +0800</pubDate></item><item><title>圣米歇尔山：自然奇观与信仰圣地的完美结合</title><link>https://go.cristianng.xyz/blog/?id=157</link><description>&lt;p style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;https://go.cristianng.xyz/blog/zb_users/upload/2025/10/202510081759914060667636.jpg&quot; alt=&quot;ZH-CN1232662142_1920x1080.jpg&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;text-wrap-mode: wrap; max-width: 100%; overflow-x: visible; font-size: 19px; line-height: 30px; color: rgb(34, 34, 34); margin-top: 28px; font-family: arial; text-align: justify; background-color: rgb(255, 255, 255);&quot;&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px; overflow-y: auto; max-width: 100%;&quot;&gt;【 地理与自然特征 】&lt;/h4&gt;&lt;/div&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;text-wrap-mode: wrap; max-width: 100%; overflow-x: visible; font-size: 19px; line-height: 30px; color: rgb(34, 34, 34); margin-top: 24px; font-family: arial; text-align: justify; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;圣米歇尔山，这座坐落于&lt;strong style=&quot;max-width: 100%;&quot;&gt;&lt;span style=&quot;max-width: 100%; color: #E86349;&quot;&gt;法国诺曼底地区南部的布列塔尼半岛附近&lt;/span&gt;&lt;/strong&gt;的标志性海岛奇观，以其独特的地理位置、深厚的历史底蕴和宏伟的建筑风格吸引着无数游客与朝圣者。它不仅是一处世界著名的旅游胜地，更是天主教的重要朝圣地。&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;text-wrap-mode: wrap; max-width: 100%; overflow-x: visible; font-size: 19px; line-height: 30px; color: rgb(34, 34, 34); margin-top: 24px; font-family: arial; text-align: justify; background-color: rgb(255, 255, 255);&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;这座小岛，直径约900米，主要由坚硬的花岗岩构成，屹立在广袤的圣马洛海湾之中。随着潮汐的涨落，这里的景观不断变化，展现出令人叹为观止的潮汐奇观。这种&lt;strong style=&quot;max-width: 100%;&quot;&gt;&lt;span style=&quot;max-width: 100%; color: #E86349;&quot;&gt;极端的潮汐环境不仅为圣米歇尔山增添了神秘的色彩，更在历史上为其提供了天然的防御屏障&lt;/span&gt;&lt;/strong&gt;。&lt;/p&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;&lt;br data-mce-bogus=&quot;1&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 28px;&quot;&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px; overflow-y: auto; max-width: 100%;&quot;&gt;【 历史文化与建筑奇观 】&lt;/h4&gt;&lt;/div&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 24px;&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;圣米歇尔山的历史可追溯至公元708年。传说中，阿夫朗什镇的主教奥伯特在天使长弥额尔的指引下建立了第一座小教堂，这一神话故事赋予了圣米歇尔山神圣的象征意义。在中世纪时期，这里因其宗教地位而吸引了众多信徒前来朝拜，逐渐发展成为一座宗教修道院和文化中心。&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 24px;&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;历经战火与重建，圣米歇尔山不仅见证了历史的沧桑，更在建筑上留下了独特的印记。9世纪时，维京人的入侵使岛上的修道院成为了避风港，逐渐演变为一座中世纪的小城镇。12世纪至13世纪间，&lt;strong style=&quot;max-width: 100%;&quot;&gt;&lt;span style=&quot;max-width: 100%; color: #E86349;&quot;&gt;修道院在扩建中融合了罗马式与哥特式建筑风格，成为欧洲中世纪建筑的典范&lt;/span&gt;&lt;/strong&gt;。尽管在腓力二世发起的火攻事件中遭受重创，但修道院随后得到了修复与扩建，其规模与影响力更是达到了巅峰。&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;&lt;br/&gt;&lt;/p&gt;&lt;div class=&quot;_3hMwG _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; display: flex; margin-top: 22px; color: rgb(0, 0, 0); font-size: 12px;&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 24px;&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;山顶的圣弥额尔山隐修院是这些建筑奇迹的代表。它由教堂、修士居所、城墙和防御工事等组成，展现了中世纪建筑的宏伟与精巧。至今，中殿、唱诗班席、城墙等遗迹仍保存完好，为研究中世纪宗教建筑与防御体系提供了宝贵的实证。&lt;/p&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;&lt;br data-mce-bogus=&quot;1&quot;/&gt;&lt;/p&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 28px;&quot;&gt;&lt;h4 style=&quot;margin: 0px; padding: 0px; overflow-y: auto; max-width: 100%;&quot;&gt;【 旅游与文化影响力 】&lt;/h4&gt;&lt;/div&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 24px;&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;作为联合国教科文组织于1979年宣布的&lt;strong style=&quot;max-width: 100%;&quot;&gt;&lt;span style=&quot;max-width: 100%; color: #E86349;&quot;&gt;世界遗产&lt;/span&gt;&lt;/strong&gt;，圣米歇尔山不仅象征着法国的文化精髓，更被誉为中世纪欧洲宗教与建筑艺术的瑰宝。每年，无数游客在潮汐的引领下，攀登至修道院的尖顶，沉醉于圣马洛海湾的壮美景色之中，感受那超越时空的庄严与神圣。&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;dpu8C _2kCxD  &quot; style=&quot;max-width: 100%; overflow-x: visible; line-height: 30px; margin-top: 24px;&quot;&gt;&lt;p style=&quot;overflow-y: auto; max-width: 100%; line-height: 30px; margin-top: 0px !important; margin-bottom: 0px !important; padding: 0px !important;&quot;&gt;从旅游地理学的视角出发，圣米歇尔山以其独特的地理位置和潮汐景观而著称，而其深厚的文化底蕴与建筑奇观更是使其成为欧洲海岸线上的璀璨明珠。这座海岛不仅展现了人类与自然环境的和谐共生，更见证了中世纪欧洲宗教信仰与建筑艺术的绚烂辉煌。如今，&lt;strong style=&quot;max-width: 100%;&quot;&gt;&lt;span style=&quot;max-width: 100%; color: #E86349;&quot;&gt;圣米歇尔山不仅是法国的旅游胜地，更在全球旅游地理研究中占据着举足轻重的地位，完美融合了自然奇观与人文历史&lt;/span&gt;&lt;/strong&gt;。&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br/&gt;&lt;/p&gt;</description><pubDate>Wed, 08 Oct 2025 17:00:11 +0800</pubDate></item></channel></rss>