分类 开发&技术 下的文章
SpringBoot 实现邮件发送功能
0x00 添加Starter模块依赖
在 Maven pom.xml 配置文件中加入 spring-boot-starter-mail 依赖。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency> PHP 调用 COM 组件方法
0x00 开启 COM 组件扩展
打开 php.ini 配置文件,搜索 #extension=php_com_dotnet.dll ,将前面的 # 注释打开,然后重启 web 服务。
可以使用 phpinfo() 函数打印并搜索 com_dotnet 关键字,确认扩展是否成功加载。
MyBatis 缓存导致查询非最新数据问题
Hexo 因 themes/next 文件夹存在 .git 而无法提交的解决方法
问题原因
无法提交根本原因是next主题也是一个repo。
解决方法
1、剪切 themes/next/.git 文件夹到其他处
$ mv themes/next/.git ~/otherpath Manjaro 报 Cannot find the fakeroot binary 错误原因及解决
报错内容
ERROR: Cannot find the fakeroot binary required for building as non-root user.
ERROR: Cannot find the strip binary required for object file stripping.
Linux 解决从 Github 下载慢问题
查看 Github 访问节点 IP
访问 https://www.ipaddress.com/ 查询下面三个域名的 IP 节点
github.com
github.global.ssl.fastly.net
codeload.github.com
解决 Manjaro 系统无法驱动 8821CE 无线网卡
查看网卡型号和驱动状态
首先通过命令 lspci -k | grep Wireless 看一下原因是否为缺少 wifi 驱动,如下,如果没有 Kernel driver in use,说明缺少驱动。
05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter
Kernel driver in use: rtl8821ce
Kernel modules: 8821ce Hexo 添加分类及标签
生成的新文件夹都在source下也就是和放文章的文件夹一块
以下所有命令都是在博客文件目录下执行
创建“分类”选项
生成“分类”页并添加tpye属性,进入博客目录。执行命令下方命令
$ hexo new page categories Debian9 启动后进入命令行
打开 default grub 配置
$ sudo vi /etc/default/grub修改以下3处内容
- 找到行
GRUB_CMDLINE_LINUX_DEFAULT="quiet",加#注释掉这一行配置 - 找到行
GRUB_CMDLINE_LINUX="",修改为GRUB_CMDLINE_LINUX="text" - 找到行
#GRUB_TERMINAL=console,去掉#注释