首页 > 2021年05月21日 > 全部分享
SpringBoot(三) ---- SpringBoot启动加载器
1.ApplicationRunner 实现ApplicationRunner接口,覆盖run方法,并注册成bean: @Component @Order(1) public class TestApplicationRunner implements ApplicationRunner { @Au ...
分类:编程语言   时间:2021-05-21 17:42:25    收藏:0  评论:0  赞:0  阅读:15
生成主键id
// 生成主键id const uuidv1 = require('uuid/v1') let uId = uuidv1() uId = uId.split('-').join('') ...
分类:其他   时间:2021-05-21 17:42:14    收藏:0  评论:0  赞:0  阅读:15
Timer定时任务
class TimerTest01{ public static void main(String[] args) { Timer timer = new Timer(); // Timer timer = new Timer(true);//守护线程 String firstTimeStr = " ...
分类:其他   时间:2021-05-21 17:42:05    收藏:0  评论:0  赞:0  阅读:8
ubuntu16.04 Android编译环境
Ubuntu16.04 server版本安装好后安装下面软件: sudo apt-get install git-core gnupg flex bison build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev ...
分类:移动平台   时间:2021-05-21 17:41:55    收藏:0  评论:0  赞:0  阅读:15
python基础知识之字典相关
一、如何创建字典创建字典同样有两种方式:第1种:a = {} 或 a = {'a': 1,’b':2}第2种:a = dict() 或 a = dict (a=1, b=2) 或 a = dict ( [(‘a’, 1),(‘b, 2)] )tips: dict()创建一个空字典。若要创建有内容的字 ...
分类:编程语言   时间:2021-05-21 17:41:45    收藏:0  评论:0  赞:0  阅读:11
xxl-job源码阅读一(客户端)
1、源码入口 使用xxl-job的时候,需要引入一个jar,然后还需要往Spring容器注入XxlJobSpringExecutor <dependency> <groupId>com.xuxueli</groupId> <artifactId>xxl-job-core</artifactId> < ...
分类:其他   时间:2021-05-21 17:41:33    收藏:0  评论:0  赞:0  阅读:23
Pigeon细节梳理之ZK里存了什么
在ZK的DP/SERVER节点下 CuratorRegistry # registerPersistentNode void registerPersistentNode(String serviceName, String group, String serviceAddress, int wei ...
分类:其他   时间:2021-05-21 17:41:19    收藏:0  评论:0  赞:0  阅读:29
gitops之flux CD安装部署与实战
基于Flux项目的云原生GitOps实践参考链接https://blog.csdn.net/weixin_38754564/article/details/100015513 如何使用Flux CD持续交付Kubernetes应用程序参考链接https://cloud.tencent.com/developer/article/1659450
分类:其他   时间:2021-05-21 17:41:06    收藏:0  评论:0  赞:0  阅读:12
GdiplusStartupInput 结构
GdiplusStartupInput 结构 GdiplusStartupInput 结构 该结构持有GdiplusStartup函数所需要使用的一组参数. struct GdiplusStartupInput { UINT32 GdiplusVersion; DebugEventProc Debu ...
分类:其他   时间:2021-05-21 17:40:50    收藏:0  评论:0  赞:0  阅读:20
mysql 出现You can't specify target table for update in FROM clause错误的解决方法
mysql出现You can’t specify target table for update in FROM clause 这个错误的意思是不能在同一个sql语句中,先select同一个表的某些值,然后再update这个表。 原语句: update t_users set coins = (co ...
分类:数据库技术   时间:2021-05-21 17:40:41    收藏:0  评论:0  赞:0  阅读:19
Categorize Clothing Images
# TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pyplot as plt p ...
分类:其他   时间:2021-05-21 17:40:32    收藏:0  评论:0  赞:0  阅读:17
【leetcode每日一题】不相交的线
不相交的线 1、题目描述 在两条独立的水平线上按给定的顺序写下 nums1 和 nums2 中的整数。 现在,可以绘制一些连接两个数字 nums1[i] 和 nums2[j] 的直线,这些直线需要同时满足满足: 1、nums1[i] == nums2[j] 2、且绘制的直线不与任何其他连线(非水平线 ...
分类:其他   时间:2021-05-21 17:40:24    收藏:0  评论:0  赞:0  阅读:19
web自动化测试(3)--元素操作之等待wait
我们在进行元素定位的过程中,可能会出现no such element:Unable to locate elementd的错误提示。 出现这一问题可能有如下3方面的原因,分别是: (1)元素定位表达式有误 定位方案:在html页面中,通过按F12后输入定位表达式确认是否有误 (2)等待不到位 定位方 ...
分类:Web开发   时间:2021-05-21 17:40:10    收藏:0  评论:0  赞:0  阅读:20
Helm命令日常使用
更换仓库 默认的stable仓库地址是:https://kubernetes-charts.storage.googleapis.com 若遇到Unable to get an update from the “stable” chart repository (https://kubernetes ...
分类:其他   时间:2021-05-21 17:39:59    收藏:0  评论:0  赞:0  阅读:8
“杀死”线程
在Python中后台线程无法被杀死,那么如何终止线程呢? import random import threading import time def bg_thread(): for i in range(1, 30): print(f'{i} of 30 iterations...') # do ...
分类:编程语言   时间:2021-05-21 17:39:48    收藏:0  评论:0  赞:0  阅读:24
Java 图片压缩
一张原始图像(1920x1080),如果每个像素32bit表示(RGBA),那么,图像需要的内存大小1920x1080x4 = 8294400 Byte那图像为何可以压缩呢?因为它有很多冗余信息。比如说,第一行像素基本都一样,假设亮度值Y是这么存的[105比如说,第一行像素基本都一样,假设亮度值Y是这么存的[105 105 105…….105],如果共100个像素,那需要1Byte*100。最简单
分类:编程语言   时间:2021-05-21 17:39:37    收藏:0  评论:0  赞:0  阅读:23
VUE优点有哪些?VUE的特点介绍
目前市场三大前端主流框架分别是Angular、React和Vue。Vue之所以被开发者青睐,主要是Vue乘承了Angular和React框架两者的优势,并且Vue的代码简洁、上手容易,在市场上也得到大量应用。下面我们就对Vue的特性进行简单介绍。 1.轻量级 Angular的学习成本高,使用起来比较 ...
分类:其他   时间:2021-05-21 17:39:23    收藏:0  评论:0  赞:0  阅读:11
Nginx支持https访问
为了提高web应用的安全性,现在基本上都需要支持https访问。在此记录一下自己在nginx下的配置过程 安装Nginx这里就省略了 安装openssl模块 yum -y install openssl 开始生成证书 # openssl genrsa -des3 -out server.key 10 ...
分类:Web开发   时间:2021-05-21 17:39:08    收藏:0  评论:0  赞:0  阅读:19
10.django学习
1、orm 1 from django.db import models 2 3 class Musicer(models.Model): 4 name = models.CharField(max_length=20, verbose_name="姓名") 5 age = models.Integ ...
分类:其他   时间:2021-05-21 17:38:52    收藏:0  评论:0  赞:0  阅读:15
并查集 求连通图问题
解题思路 并查集 ,重点在理解每个节点都要记录它的父亲节点 为节省查找时间,需要对路径进行压缩 如果当前节点能都与其他树合并 ,则应该讲集合总数减1 代码 class Solution { public: //利用并查集,字典: std::unordered_map , 倒树 //find merg ...
分类:其他   时间:2021-05-21 17:38:40    收藏:0  评论:0  赞:0  阅读:24
744条   上一页 1 ... 20 21 22 23 24 ... 38 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!