-
IDEA Debug Method Breakpoint 方法断点影响启动速度
方法断点 IDEA中实现的方法断点功能,并非是JPDA自带的功能(Java Platform Debugger Architecture)。 开启时,IDEA会
-
IDEA Debug 时对象莫名其妙被修改了
现象 IDEA在开启Debug运行时,点击查看对象,对象中的字段的值每次都会变化。 原因 对象复写了toString()方法,IDEA在我们点击查看对象信息时,
-
curl 报错 (60) SSL certificate problem
错误信息 curl: (60) SSL certificate problem: self signed certificate in certificate
-
文件无改动但 IDEA 仍然显示有改动
现象 git diff无差异但IDEA仍然显示有改动。 git rollback后能让IDEA显示无改动。 备注 尤其是前端项目。 原因 文件换行符的差别。 W
-
Git rollback 无法回滚已修改文件
场景 一些文件不需要修改,在IDEA中点击Rollback无效,仍然显示有改动,使用Show Diff也看不出具体差异。 git diff 使用git diff
2022-08-22, Views: 1329 , Topics: Git
-
skaffold init 提示 one or more valid Kubernetes manifests are required to run skaffold
错误信息 PS C:\> skaffold init ? Which builders would you like to create kubernet
2022-08-21, Views: 1253 , Topics: Kubernetes skaffold
-
Angular 相关知识点
示例 <div *ngFor="let product of products"> <h3> <a [title]=
2022-08-20, Views: 751 , Topics: Angular
-
Angular @ViewChild 操作 DOM
@ViewChild 基本语法: @ViewChild([reference from template], {read: [reference type]})
2022-08-19, Views: 1227 , Topics: Angular
-
Angular error TS2564: Property 'xx' has no initializer and is not definitely assigned in the constructor.
解决办法 编辑tsconfig.json compilerOptions下添加:"strictPropertyInitialization":false {
2022-08-18, Views: 1228 , Topics: Angular
-
Telepresence 设置配置文件更改默认配置
默认路径 默认是没有这个文件的,需手动创建。 Windows:%APPDATA%\telepresence\config.yml Linux:$HOME/.c
2022-08-16, Views: 1428 , Topics: Telepresence Kubernetes
-
使用 Telepresence 在本地环境直接访问 Kubernetes 内部服务地址
查看服务 kubectl get pod,svc -o wide 输出:可以看到有Service:mydeploy、nginx和默认的kubernetes,已经
2022-08-16, Views: 1216 , Topics: Telepresence Kubernetes
-
Windows PowerShell 设置命令别名永久生效
当前会话生效 Set-Alias -Name k -Value kubectl 设置永久生效 PowerShell 配置文件位置 文件不一定存在 $profil
2022-08-15, Views: 1422 , Topics: PowerShell Windows
-
trivy 跳过更新数据库执行漏洞扫描
数据库位置 /root/.cache/trivy/db 查看帮助中也可以获取 trivy -h | grep 'TRIVY_CACHE_DIR' 输出 root
2022-08-14, Views: 3068 , Topics: trivy
-
使用 trivy 扫描 Docker 镜像、K8S 集群的安全漏洞
描述 Scanner for vulnerabilities in container images, file systems, and Git repos
2022-08-13, Views: 1917 , Topics: trivy Docker Kubernetes
-
Windows Terminal 添加 Git Bash
设置步骤 打开Windows Terminal的设置。 点击添加新配置文件。 点击复制(Windows PowerShell配置文件)。 修改命令行一栏的配置
-
IDEA 启动项目报 java: 程序包 xxx 不存在
现象 依赖的jar包能在依赖库中找到,java文件中没有报错,也能正常跳转到类,但启动项目报程序包不存在。 原因 依赖包原本是0.0.1-SNAPSHOT改成了
-
IDEA 内置路径变量
内置变量 $USER_HOME$:home目录。(等同于cd ~命令中的~。) $PROJECT_DIR$:工程目录。 $MODULE_WORKING_DIR
2022-08-10, Views: 1818 , Topics: IDEA
-
IDEA 禁止导入所有包
import * 当同一个包下使用到的类较多时,IDEA会自动改为导入所有的包。 import java.util.*; 禁止导入所有包 打开Settings
2022-08-09, Views: 3020 , Topics: IDEA
-
IDEA Debug Stream 流
示例代码 public class StreamDemo { public static void main(String[] args) {
-
IDEA Debug 时模拟抛出异常
场景 需要测试代码异常情况,运行时模拟抛出异常。 比如模拟OutOfMemoryError内存溢出OOM异常等。 需要测试Spring全局的Controller