乙巳🐍年

acc8226 的博客

上一章我们已经介绍了 Gradle 脚本的基础,在其中我们也强调了 Gradle 中最要的 Projects 和 Tasks这两个概念,尤其是Tasks,我们的所有 Gradle 的构建工作都是由 Tasks 组合完成的,那么这一章我们就详细的介绍下 Tasks–任务。
任务的介绍也是从实用性出发,比如如何多种方式创建任务,如果访问任务的方法和属性等信息,如果对任务进行分组、排序,以及任务的一些规则性知识。

第一种是直接以一个任务名字创建任务的方式:

1
2
3
4
5
6
//1:
def Task createTask1 = task(creatTask1)
//配置doLast方法
creatTask1.doLast{
println "创建方法原型: Task task(String name)"
}
阅读全文 »

终端软件

https://git-scm.com/downloads | Git-for-windows 阿里源地址

windows 平台我一般会下载便捷版。

图形化软件

windows 环境下已经自带了 gitk,如果觉得还是不好使的话。Java 开发者使用的 ide 也有相应的支持,一般足够使用。

【windows 推荐】TortoiseGit

TortoiseGit 和 windows 资源管理器有很好的集成

阅读全文 »

概览

Zabbix API 允许你以编程方式检索和修改 Zabbix 的配置,并提供对历史数据的访问。它广泛用于:

  • 创建新的应用程序以使用Zabbix;
  • 将Zabbix与第三方软件集成;
  • 自动执行常规任务。

Zabbix API 是基于 Web 的API,作为 Web 前端的一部分提供。它使用 JSON-RPC 2.0 协议,这意味着两点:

  • 该 API 包含一组独立的方法;
  • 客户端和 API 之间的请求和响应使用 JSON 格式进行编码。

有关协议和 JSON 的更多信息可以在 JSON-RPC 2.0 规范 和 JSON 格式主页 中找到。

阅读全文 »

Tencent/vConsole: A lightweight, extendable front-end developer tool for mobile web page.
https://github.com/Tencent/vConsole

示例:

1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
<head>
</head>
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
// VConsole 会自动挂载到 `window.VConsole`
var vConsole = new window.VConsole();
window.localStorage.efg = 'dfdf fdfe '
console.log(1234)
</script>
<body>
</body>
</html>
阅读全文 »

使用 spring-boot-starter-actuator 可以用于检测系统的健康情况、当前的Beans、系统的缓存等,具体可检测的内容参考下面的链接: https://docs.spring.io/spring-boot/docs/2.6.1/reference/htmlsingle/#actuator.endpoints.exposing

1
2
3
4
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

浏览器访问 localhost:8080/actuator 即可。

默认情况下,通过 web 端只可访问 http://localhost:8080/actuator/health ,可在 application.properties 中配置访问的 uri、权限、端口等

1
2
3
4
5
6
# 访问端口
management.server.port=8081
# 根路径
management.endpoints.web.base-path=/actuator/z
# web 端允许的路径
management.endpoints.web.exposure.include=*

通过以上配置,开放了 web 端的所有访问,可通过访问 http://localhost:8081/actuator/z/beans 来查看系统中的 beans

参考

spring-boot-starter-actuator 作用及基本使用_GetcharZp 的博客-CSDN 博客
https://blog.csdn.net/qq_39042062/article/details/121943803

0%