logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

SpringBoot中创建bean的两种方式:spring.factories 和 @Configuration + @ComponentScan

使用 spring.factories是springboot加载bean的一种方式,通常用于自动装配环境配置相关的类,和其机制和java的SPI机制类似,不同的是其配置规则 : spring.factories以key,value的键值对列表存在。value是类的完全限定类名。类之间用逗号(,)分隔,后面跟着反斜杠(\)和换行符,以提高可读性。

文章图片
#spring boot#spring#java
Lua脚本教程

Lua脚本教程一、数据类型1、常量、变量2、变量名:字母、数字、下划线(不能以数字开头)3、几种数据类型二、运算符三、初识函数一、数据类型1、常量、变量a=10a=2.5a=“abcd”左边是变量、右边是常量lua中注释符是–2、变量名:字母、数字、下划线(不能以数字开头)内置关键字:andbreakdoelseelseififorendinfalseturefunctionnotlocalwhi

#lua
Unable to connect to localhost/<unresolved>:6379 springboot2.x调用虚拟机VM Virtualbox中的redis容器

解决方案:使用本地配置文件的方式创建docker容器:docker run -d -p 6379:6379 -v /test/redis/redis.conf:/etc/redis/redis.conf--name myredis redis redis-server /etc/redis/redis.conf --appendonly yes参数解析:-d后台运行-p将redis的6379端口映

#redis#spring boot#java
OpenCV实现视频防抖技术

# Import numpy and OpenCVimport numpy as npimport cv2def fixBorder(frame):s = frame.shape# Scale the image 4% without moving the centerT = cv2.getRotationMatrix2D((s[1] / 2, s[0] / 2), 0, 1.04)frame =

#opencv
到底了