Springboot启动前执行方法

## 1.实现ServletContextAware接口并重写其setServletContext方法 \`\`\`java @Component public class TestStarted implements ServletContextAware { /\*\* \* 在填充普通bean

Administrator Administrator 发布于 2026-05-17

SQL优化

--- title: Sql date: 2022-01-20 11:16:50 updated: 2022-01-20 11:16:50 comments: true tags: - 优化 - sql lang: zh_CN --- 1. 对查询进行优化,应尽量避免全表扫描,首先应考虑在 wher

Administrator Administrator 发布于 2026-05-17

springCloudAlibaba搭建笔记

# Nacos搭建 - 创建文件conf/cluster.conf 配置地址 \`\`\`shell ip1:port1 ip2:port2 # nacos对应的ip与端口,每个ncaos都要有本文件 \`\`\` - 然后修改application.properties对应端口 - 数据库使用同一

Administrator Administrator 发布于 2026-05-17

SpringCloud_未完成

# 传统架构 分布式+Dubbo !\[image-20200906111828992\](https://i.loli.net/2020/09/06/9jUCHOSyFZqTpWk.png) # 微服务架构 ## 微服务架构的优缺点 微服务关注的是敏捷,快速开发 !\[image-20211126

Administrator Administrator 发布于 2026-05-17

springboot2

# Managing the Application Availability State \`\`\`java @Component public class ReadinessStateExporter { @EventListener public void onStateChange(Ava

Administrator Administrator 发布于 2026-05-17

SpringCloud,微服务,云原生

!\[请输入图片描述\]\[1\] !\[请输入图片描述\]\[2\] !\[请输入图片描述\]\[3\] !\[请输入图片描述\]\[4\] \[1\]: https://img1.imgtp.com/2022/07/30/ViPN6RDT.png \[2\]: https://img1.imgt

Administrator Administrator 发布于 2026-05-17

tensorflow 测量工具,与自定义训练

``` # 新建测量器 m = tf.keras.metrics.Accuracy() # 写入测量器 m.update_state([0,1,1],[0,1,2]) # 读取统计信息 m.result() # 准确率为0.66 # 清除 m.reset_states() ``` ``` acc_m

Administrator Administrator 发布于 2026-05-17

systemctl

--- title: Systemctl date: 2022-01-16 15:04:50 updated: 2022-01-16 15:04:50 comments: true tags: - linux - systemctl categories: - \[note\] lang: zh_C

Administrator Administrator 发布于 2026-05-17

tensorflow,keras,cuda对应关系

![](https://img2020.cnblogs.com/blog/1333782/202004/1333782-20200421123108356-9953470.png) ![](https://img2020.cnblogs.com/blog/1333782/202004/1333782

Administrator Administrator 发布于 2026-05-17

tcp

!\[2024-09-21T08:14:49.png\]\[1\] !\[2024-09-21T08:15:08.png\]\[2\] !\[2024-09-21T08:15:15.png\]\[3\] \[1\]: /usr/uploads/2024/09/953253447.png \[2\]:

Administrator Administrator 发布于 2026-05-17

tensorflow2

### **一,常用的内置评估指标** * MeanSquaredError(平方差误差,用于回归,可以简写为MSE,函数形式为mse) * MeanAbsoluteError (绝对值误差,用于回归,可以简写为MAE,函数形式为mae) * MeanAbsolutePercentageError

Administrator Administrator 发布于 2026-05-17

ThreadLocal

!\[请输入图片描述\]\[1\] \[1\]: https://img1.imgtp.com/2022/07/30/9o0tvWCr.png

Administrator Administrator 发布于 2026-05-17

Tensorflow2_8bd29a47

Tensorflow2.0 1. # Tensorflow 简介 1. ### Tensorflow是什么 1. #### Google开源软件库 1. 采用数据流图,用于数值计算 2. 支持多平台 GPU CPU 移动设备 3. 最初用于深度学习,变得通用 2. #### 数据流图 1. 节点--

Administrator Administrator 发布于 2026-05-17

Tensorflow2_a1affa2c

# 数据载体 \| python:list,列表 \| numpy:ndarray \| tensorflow:tensor,多维数组 \| \| ------------------------------------------------------------ \| ------------

Administrator Administrator 发布于 2026-05-17

tensorflow自定义网络结构

自定义网络层 ====== 自定义层需要继承tf.keras.layers.Layer类,重写init,build,call * __init__,执行与输入无关的初始化 * build,了解输入张量的形状,定义需要什么输入 * call,进行正向计算 ``` class MyDense(tf.ke

Administrator Administrator 发布于 2026-05-17

Tensorflow日志格式

1,通过设置环境变量"TF_CPP_MIN_LOG_LEVEL"控制log级别 Level Level for Humans Level Description 0 DEBUG all messages are logged (Default) 1 INFO INFO messages are no

Administrator Administrator 发布于 2026-05-17

typora

1,安装typora 2,写字符,点击退出,会关闭授权页面,正常可用 !\[typora 使用方式\]\[1\] \[1\]: /usr/uploads/2025/10/1984327946.png

Administrator Administrator 发布于 2026-05-17

Ubuntu Qemu虚拟化创建虚拟机

\`\`\`shell # 更新系统 sudo apt update \&\& sudo apt upgrade -y # 安装 KVM、libvirt、virt-install 等核心组件 sudo apt install -y qemu-kvm libvirt-daemon-system lib

Administrator Administrator 发布于 2026-05-17

Tun虚拟网卡示例用法

\`\`\`go /\* \* @Author: dean 1028968939@qq.com \* @Date: 2024-07-13 12:05:39 \* @LastEditors: dean 1028968939@qq.com \* @LastEditTime: 2024-07-13 13:

Administrator Administrator 发布于 2026-05-17

Thinkphp

# thinkphp:mvc模式 ## 1,thinkphp的安装配置 1. 条件 1. PHP\>=5.4.0 2. PDO MbString CURL PHP Externsion 3. Mysql 4. Apache或Nginx 2. 安装: - composer \`\`\`shell co

Administrator Administrator 发布于 2026-05-17
上一页 下一页