<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0"><channel><title>Han.</title><link>https://blog.hn3.top</link><atom:link href="https://blog.hn3.top/rss.xml" rel="self" type="application/rss+xml"/><description>Han.</description><generator>Halo v2.26.1</generator><language>zh-cn</language><image><url>https://blog.hn3.top/upload/%E5%9C%86%E5%BD%A2%E5%A4%B4%E5%83%8F.jpg</url><title>Han.</title><link>https://blog.hn3.top</link></image><lastBuildDate>Sun, 20 Sep 2026 03:57:30 GMT</lastBuildDate><item><title><![CDATA[Swagger使用指南]]></title><link>https://blog.hn3.top/archives/fI9fxad2</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=Swagger%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97&amp;url=/archives/fI9fxad2" width="1" height="1" alt="" style="opacity:0;">本文介绍了OpenAPI规范（OAS）和Swagger工具框架，其中OAS是Linux基金会的一个项目，旨在通过定义一种描述API的语言来规范RESTful服务开发过程。Swagger是一个流行的在线接口文档生成工具，支持依据接口文档进行前后端开发。文章详细说明了如何在SpringBoot中集成Swagger，包括添加依赖、配置信息以及启动服务的步骤。此外，还列举了一些常用的Swagger注解，如@Api, @ApiOperation等，这些注解可以帮助开发者更好地描述API的功能与参数，从而提高接口文档的可读性和易用性。通过合理使用这些注解，可以显著改善自动生成的接口文档质量。]]></description><guid isPermaLink="false">/archives/fI9fxad2</guid><dc:creator>Administrator</dc:creator><enclosure url="https://blog.hn3.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fswagger.png&amp;size=m" type="image/jpeg" length="0"/><category>Java</category><pubDate>Sat, 9 May 2026 11:13:35 GMT</pubDate></item><item><title><![CDATA[跨域问题解决方案]]></title><link>https://blog.hn3.top/archives/sfnGr361</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=%E8%B7%A8%E5%9F%9F%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88&amp;url=/archives/sfnGr361" width="1" height="1" alt="" style="opacity:0;">本文介绍了跨域现象及其解决方案。当浏览器从一个源（如http://localhost:8601）向另一个不同源（协议、主机或端口不同）的服务器发送请求时，会因同源策略而被阻止，导致跨域错误。例如，从http://localhost:8601向http://192.168.22.1:63110发送请求时，如果没有适当的CORS配置，浏览器将拦截该请求并显示错误信息。解决跨域问题的方法包括使用JSONP、在服务端响应头中添加`Access-Control-Allow-Origin`字段允许特定或所有来源的请求，以及通过Nginx代理来实现跨域访问。以Java为例，可以通过配置全局CORS过滤器来放行所有跨域请求。]]></description><guid isPermaLink="false">/archives/sfnGr361</guid><dc:creator>Administrator</dc:creator><enclosure url="https://blog.hn3.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2F3.webp&amp;size=m" type="image/jpeg" length="0"/><category>默认分类</category><pubDate>Wed, 26 Nov 2025 13:15:48 GMT</pubDate></item><item><title><![CDATA[MySQL性能分析及SQL优化]]></title><link>https://blog.hn3.top/archives/SM5Zlzaf</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=MySQL%E6%80%A7%E8%83%BD%E5%88%86%E6%9E%90%E5%8F%8ASQL%E4%BC%98%E5%8C%96&amp;url=/archives/SM5Zlzaf" width="1" height="1" alt="" style="opacity:0;">本文详细介绍了MySQL的存储引擎和索引机制。存储引擎是基于表的数据存储、索引建立及数据操作的技术实现方式，主要分为InnoDB、MyISAM和Memory三种类型。其中，InnoDB是默认存储引擎，支持事务、行级锁和外键约束；MyISAM不支持事务和外键，但访问速度快；Memory则将数据存储在内存中，适用于临时表或缓存。索引是提高数据检索效率的数据结构，主要有B+Tree和Hash两种类型，其中B+Tree是MySQL最常用的索引结构。此外，文章还介绍了创建、查看和删除索引的语法，以及如何通过慢查询日志和`EXPLAIN`命令进行SQL性能分析。]]></description><guid isPermaLink="false">/archives/SM5Zlzaf</guid><dc:creator>Administrator</dc:creator><enclosure url="https://blog.hn3.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2FMySQL.webp&amp;size=m" type="image/jpeg" length="3884"/><category>数据库</category><pubDate>Sun, 23 Nov 2025 12:42:30 GMT</pubDate></item><item><title><![CDATA[linux常用命令(二)]]></title><link>https://blog.hn3.top/archives/uRSro4Vx</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=linux%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4%28%E4%BA%8C%29&amp;url=/archives/uRSro4Vx" width="1" height="1" alt="" style="opacity:0;">本文详细介绍了Docker和Git的常用及高级命令。在Docker部分，涵盖了基础命令如查看容器、镜像操作、运行与管理容器等，并深入讲解了Dockerfile编写、自定义网络配置、数据卷使用以及docker-compose模板。对于Git，文章不仅介绍了用户配置、仓库初始化、基本操作、分支管理和远程仓库同步等基础内容，还进一步探讨了高级功能，包括rebase整理提交历史、stash暂存工作区修改、submodule管理依赖项目以及cherry-pick应用特定提交等技巧。这些知识点为开发者提供了从入门到进阶所需的全面指导。]]></description><guid isPermaLink="false">/archives/uRSro4Vx</guid><dc:creator>Administrator</dc:creator><enclosure url="https://blog.hn3.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2FOIP-C.webp&amp;size=m" type="image/jpeg" length="3028"/><category>Linux</category><pubDate>Thu, 20 Nov 2025 09:05:37 GMT</pubDate></item><item><title><![CDATA[Linux常用命令(一)]]></title><link>https://blog.hn3.top/archives/MRD88DvD</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=Linux%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4%28%E4%B8%80%29&amp;url=/archives/MRD88DvD" width="1" height="1" alt="" style="opacity:0;">本文档是一份全面的Linux常用命令指南，涵盖了从文件与目录操作到磁盘管理等多个方面。内容包括使用`ls`、`cd`、`mkdir`等命令进行基本的文件和目录管理；通过`cat`、`grep`等工具查看及搜索文件内容；利用`tar`、`zip`执行压缩与解压任务；借助`chmod`、`chown`调整用户权限；运用`ping`、`curl`等网络命令检测连接或下载资源；以及使用`top`、`ps`监控系统状态与进程。此外，还介绍了软件安装(`apt`, `yum`)、服务控制(`systemctl`)及磁盘挂载(`mount`)等高级功能。此指南适合Linux初学者快速掌握常用命令及其应用场景。]]></description><guid isPermaLink="false">/archives/MRD88DvD</guid><dc:creator>Administrator</dc:creator><enclosure url="https://blog.hn3.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2FOIP-C.webp&amp;size=m" type="image/jpeg" length="3028"/><category>Linux</category><pubDate>Thu, 20 Nov 2025 08:50:33 GMT</pubDate></item><item><title><![CDATA[shell变量]]></title><link>https://blog.hn3.top/archives/dfWzZjEQ</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=shell%E5%8F%98%E9%87%8F&amp;url=/archives/dfWzZjEQ" width="1" height="1" alt="" style="opacity:0;">本文介绍了Shell编程中的变量、字符串和数组的使用方法。在定义Shell变量时，需遵循一定的命名规则，如不能以数字开头、避免使用特殊字符等，并且变量名与等号间不应有空格。使用变量时，在变量名前加美元符号（$）。通过`readonly`命令可以创建只读变量，而`unset`命令则用于删除变量。Shell支持多种类型的变量，包括字符串、整数、数组以及环境变量等。对于字符串操作，文章详细说明了单引号与双引号的区别及各自适用场景；同时，也讲解了如何获取字符串长度、提取子串以及查找子串的位置。关于数组，文章展示了如何定义、读取元素及获取数组长度的方法。最后，讨论了几种有效的多行注释技术，包括使用Here文档和冒号命令来实现代码段的快速注释。]]></description><guid isPermaLink="false">/archives/dfWzZjEQ</guid><dc:creator>Administrator</dc:creator><category>Linux</category><category>服务器</category><pubDate>Thu, 20 Nov 2025 08:11:52 GMT</pubDate></item><item><title><![CDATA[饥荒联机版服务器搭建教程(Linux)]]></title><link>https://blog.hn3.top/archives/OERoTGMy</link><description><![CDATA[<img src="https://blog.hn3.top/plugins/feed/assets/telemetry.gif?title=%E9%A5%A5%E8%8D%92%E8%81%94%E6%9C%BA%E7%89%88%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B%28Linux%29&amp;url=/archives/OERoTGMy" width="1" height="1" alt="" style="opacity:0;">本文是一篇关于在Linux系统上搭建《饥荒：联机版》服务器的详细教程。首先，确保拥有符合要求的云服务器，并安装了CentOS或Ubuntu等Linux发行版。接着，需要开放特定端口以允许游戏连接。然后，根据所使用的Linux版本（CentOS或Ubuntu），通过相应的包管理器更新系统并安装必要的依赖项。接下来，介绍如何使用SteamCMD下载并安装游戏服务端。之后，从科雷官网获取并配置游戏服务器设置文件。最后，创建启动脚本来分别运行地面和洞穴服务器，并提供停止服务器的方法。整个过程包括了从环境准备到服务器成功运行的每一步骤，适合有一定Linux基础的用户参考。]]></description><guid isPermaLink="false">/archives/OERoTGMy</guid><dc:creator>Administrator</dc:creator><enclosure url="https://blog.hn3.top/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri?uri=%2Fupload%2Fjihuang.webp&amp;size=m" type="image/jpeg" length="0"/><category>Linux</category><category>游戏</category><category>默认分类</category><pubDate>Wed, 19 Nov 2025 03:34:40 GMT</pubDate></item></channel></rss>