丙午🐎年

acc8226 的博客

windows 用户

我开源了一款免费的效率工具【win】捷键

备用

  • XMouseButtonControl 简称 xmbc 配置稍显复杂,竟然还有鼠标自然滚动翻转
  • Preme for Windows – 方便小巧的桌面增强工具
  • 【win】MyKeymap 官网 | 源码 槽点是 win 7 用不了

mac 用户

【mac】hammerspoon + 自制脚本

阅读全文 »

如果您是 Windows 的 Linux 子系统(WSL)用户,要安装 Rust,请在终端中运行以下命令,然后遵循屏幕上的指示。

1
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

如果报错 linker cc not found 则安装 sudo apt install gcc

1
2
3
4
cargo new greeting
cd ./greeting
cargo build
cargo run

通用枚举

1
2
3
4
5
6
7
8
9
@FunctionalInterface
public interface BaseEnum {
/**
* 返回的 keys 可转换为 BaseEnum
*
* @return 字符串数组
*/
String[] getKeys();
}

枚举类实现此接口,并定义映射方式

阅读全文 »

Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded

在初次完成项目的构建后,启动项目时出错,提示信息“ Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured. ” ,这个异常很好理解,直接翻译成中文,一看便知了 “ 配置数据源失败:没有指定’url’属性,也不能配置嵌入式数据源。

导致这个问题的原因是因为,在 pom.xml 配置文件中,配置了数据连接技术 spring-boot-starter-jdbc 包 ,在启动配置文件时 ,Spring Boot 的自动装配机制就会去配置文件中找,相关的数据库的连接配置信息,如果找不到则抛出异常信息(具体源码就不在这儿分析了,有兴趣的可以自行去查看)。加入的 JDBC 依赖包。

阅读全文 »
0%