TKE SpringBoot 接入应用性能观测 SkyWalking

[TOC] ## 接入步骤 1. 在[应用性能观测](https://console.cloud.tencent.com/apm/monitor)中新建应用。 2.

Markdown-It in Browser

[TOC] [markdown-it][1] 是一款将 *Markdown* 格式文本转为 HTML 的前端工具,感觉插件比较丰富,所以就将站点的 *Markdown* 转换工具

Spring Batch 作业监听器( Job Listener )

[TOC] 每个作业都有生命周期。Spring Batch 允许在生命周期的不同阶段通过提供的钩子( *Hook* )来添加额外的逻辑。 `JobExecutionList

Spring Batch 执行上下文( Execution Context )

**批处理过程在本质上是有状态的。** `JobExecution` 表示的是 Job 的一次尝试运行,作业的状态在 `ExecutionContext` (执行上下文)中维护。

Spring Boot:自定义模块的自动装配

添加组件扫描的配置类: ```java package me.liujiajia.spring.boot.auto.configuration.sample.config;

Spring Batch JobParameters

在 Spring Batch 中,一个 *JobInstance* 只能成功运行一次,它根据**作业名**和**识别性参数**的哈希值来标记任务的唯一性。 启动时命令后面带上参数

Spring Boot Test:druid WebStatFilter NullPointerException

测试 Controller 时报了如下错误,根据日志是由于 *druid* 的 `WebStatFilter` 中的 *webAppStat* 字段为 `null` 导致的,而这个字段

JUnit 4 测试方法执行顺序

在 JUnit 5 中可以通过 `@TestMethodOrder` 和 `@Order` 自定义测试用例的执行顺序[^1],但在 JUnit 4 中没有 `@TestMethodOr

Spring Batch + MySQL

Spring Batch 需要存储数据以记录 Job 运行的参数、步骤等信息,这里以 *MySQL* 为例(需要添加 *mysql-connector-j* 依赖)。 完整的 *

MyBatisPlus:can not use this method for "getEntity"

使用如下方式删除数据时报了 *can not use this method for “getEntity”* 的错误。 ```java this.remove(this.la