官方安装手册地址:https://docs.docker.com/engine/install/ubuntu/ 首先配置安装依赖 sudo apt-get update sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release 添加 GPG KEY sudo mkdir…
我们在开发SpringBoot 项目的时候,通过默认的 logback 输出日志,当我们需要配置日志相关参数时,通常是修改 logback.xml 或者 logback-spring.xml 文件。 在设置日志输出目录时,我们希望能够通过环境变量来获取,同时需要支持,如果没有设置对应的环境变量的时候能够给予默认值,那怎么做呢? 通常日志路径配置如下…
在通过proxmox虚拟机安装mongdb5+时候,启动报错信息如下 MongoDB 5.0+ requires a CPU with AVX support, and your current system does not appear to have that! mongodb 启动错误 原因是 MongoDB 5.0+ 版本之后,需要CPU…
要使用 Java 验证 API,我们必须添加一个 JSR 303 实现,例如 hibernate-validator implementation group: 'org.hibernate.validator', name: 'hibernate-validator', version: '8.0.0.Final' 然后再 Controller …
查看当前时间设置 timedatectl status 显示结果 Local time: Fri 2023-01-13 01:54:29 UTC Universal time: Fri 2023-01-13 01:54:29 UTC RTC time: Fri 2023-01-13 01:54:30 Time zone: Etc/UTC (UTC,…
nvm 允许您通过命令行快速安装和使用不同版本的节点。 https://github.com/nvm-sh/nvm 安装 curl -o- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash 安装完成之后,需要设置环境变…
在开发过程中,明明没有使用的端口,但是应用就是启动失败,并且报错,bind port error 之类的,还有docker 启动也失败,并且提示 端口权限问题等 An attempt was made to access a socket in a way forbidden by its access permissions 通常这种情况,都是w…
实际问题: 我们通过高德的 jsapi 创建了一个 polygon 对象,交给一个 ref 的数组存储,在取值操作的时候,polygon 对象,被封装成了 Proxy, 这样在使用 jsapi 的时候就除了问题,所以这里的核心问题就变成了: 如何正确的从Vue3 封装的 Proxy 中正确的取出值? 核心问题 解决办法: import { toRa…
在增加了 JtsModule 之后,Spring Boot 项目输出的 rest 接口对于 Geometry 的对象 序列化成 json 依然报错: com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (throug…
配置 当前主题的输出格式,默认的情况下,主题是:robbyrussell 查询 ~/.zshrc 确定 ZSH_THEME="robbyrussell" 编辑主题文件 vi ~/.oh-my-zsh/themes/robbyrussell.zsh-theme 可以看到第一行 PROMPT="%(?:%{$fg_bold[green]%}➜ …