上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 49 下一页
摘要: Java SpringBoot 7z 压缩、解压 阅读全文
posted @ 2023-04-17 13:33 VipSoft 阅读(987) 评论(0) 推荐(1) 编辑
摘要: 根据不同的条件,调用不同的 bean 对象,执行对象中的方法 阅读全文
posted @ 2023-04-14 13:08 VipSoft 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: Java SpringBoot 通过javax.validation.constraints下的注解,实现入参数据自动验证 如果碰到 `@NotEmpty` 否则不生效,注意看下 `@RequestBody` 前面是否加上了`@Valid` 阅读全文
posted @ 2023-04-13 14:22 VipSoft 阅读(557) 评论(0) 推荐(1) 编辑
摘要: Scheduler 每次执行,都会根据JobDetail创建一个新的Job实例,这样就可以规避并发访问的问题(jobDetail的实例也是新的) Quzrtz 定时任务默认都是并发执行,不会等待上一次任务执行完毕,只要间隔时间到就会执行,如果定时任务执行太长,会长时间占用资源,导致其它任务堵塞 @D 阅读全文
posted @ 2023-04-12 11:49 VipSoft 阅读(368) 评论(0) 推荐(2) 编辑
摘要: .Net Core 跨域 <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Headers" value="Content-Type,Accept,X-Requested-With,To 阅读全文
posted @ 2023-04-11 09:31 VipSoft 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 分析器错误消息: 未能找到 CodeDom 提供程序类型“Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider 阅读全文
posted @ 2023-04-10 14:19 VipSoft 阅读(970) 评论(0) 推荐(0) 编辑
摘要: MQTT连接池 主要用到 `InitializingBean、BasePooledObjectFactory、GenericObjectPool、GenericObjectPoolConfig` MQTT是一个轻量级传输协议,它被设计用于轻量级的发布/订阅式消息传输,MQTT协议针对低带宽网络,低计算能力的设备,做了特殊的优化。是一种简单、稳定、开放、轻量级易于实现的消息协议,在物联网的应用下的信息采集,工业控制,智能家居等方面具有广泛的适用性。 阅读全文
posted @ 2023-04-10 08:47 VipSoft 阅读(1885) 评论(0) 推荐(2) 编辑
摘要: SpringBoot sftp 连接池工具类 使用`GenericObjectPool`只需要创建一个对象工厂类,继承`BasePooledObjectFactory`并重写它的`create()`和`destroyObject()`。Apache Commons Pool是一个对象池的框架,他提供了一整套用于实现对象池化的API。它提供了三种对象池:GenericKeyedObjectPool,SoftReferenceObjectPool和GenericObjectPool,其中GenericObjectPool是我们最常用的对象池,内部实现也最复杂。 阅读全文
posted @ 2023-04-07 08:48 VipSoft 阅读(903) 评论(2) 推荐(1) 编辑
摘要: Spring中有两种类型的Bean,一种是普通Bean,另一种是工厂Bean,即FactoryBean。工厂Bean跟普通Bean不同,其返回的对象不是指定类的一个实例,其返回的是该工厂Bean的getObject方法所返回的对象。 ### Spring初始化bean有两种方式: - 实现Initi 阅读全文
posted @ 2023-04-06 08:47 VipSoft 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 全埋点、可视化圈选、API等多种方式采集数据 网站、APP、小程序等各端数据一站式管理 构建用户id体系,全面深度管理用户资产 https://tongji.baidu.com/web/welcome/login 添加网站 一般 20分钟后再查看是否生效。 阅读全文
posted @ 2023-04-05 10:40 VipSoft 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 如何阻止 Java SpringBoot Test 单元测试中包括多线程时,没跑完就结束了 使用 CountDownLatch CountDownLatch、CyclicBarrier 使用区别 多线程 ThreadPoolTaskExecutor 应用 Java BasePooledObjectF 阅读全文
posted @ 2023-04-04 08:52 VipSoft 阅读(388) 评论(0) 推荐(0) 编辑
摘要: CountDownLatch:所有子线程完成后,再执行主线程、 CyclicBarrier: 所有子线程就绪后,再执行子线程 阅读全文
posted @ 2023-04-03 09:01 VipSoft 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Java GenericObjectPool 对象池化技术--SpringBoot sftp 连接池工具类 一个对象池包含一组已经初始化过且可以使用的对象,而可以在有需求时创建和销毁对象。池的用户可以从池子中取得对象,对其进行操作处理,并在不需要时归还给池子而非直接销毁它。这是一种特殊的工厂对象。 阅读全文
posted @ 2023-03-31 09:07 VipSoft 阅读(222) 评论(0) 推荐(0) 编辑
摘要: POM <dependency> <groupId>org.eclipse.paho</groupId> <artifactId>org.eclipse.paho.client.mqttv3</artifactId> <version>1.2.2</version> </dependency> Se 阅读全文
posted @ 2023-03-30 08:41 VipSoft 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Linux CentOS Docker 安装 MQTT(EMQX), el7-amd64 => EL 是 Red Hat Enterprise Linux 的简写, “el7” 表示的是 centos7/redhat7, amd64 一般指:x86-64 阅读全文
posted @ 2023-03-29 08:47 VipSoft 阅读(802) 评论(0) 推荐(0) 编辑
摘要: SQL SERVER数据分组后取第一条数据——PARTITION BY -- 不加 distinct(a.id) order by 会有问题 导致获取出来的数据不对 SELECT id,title,description,poster_id,poster_time,drug_id FROM ( SE 阅读全文
posted @ 2023-03-28 15:26 VipSoft 阅读(181) 评论(0) 推荐(0) 编辑
摘要: SFTP 常用命令 通过堡垒机进入的 Linux 操作系统,无法直接使用 WinSCP 等工具进行文件的上传下载。 可使用 SecureCRT 先进入命令行模式 阅读全文
posted @ 2023-03-28 09:28 VipSoft 阅读(1511) 评论(0) 推荐(0) 编辑
摘要: 将.NetCore 做成 Windows 服务 - JAVA 同理 、将jar包安装为windows服务-bat启动方式 将 SpringBoot 注册为 Windows Service服务 可实现 SpringBoot 项目在Windows 中随系统自启动。也不用担心被识关闭 阅读全文
posted @ 2023-03-27 08:49 VipSoft 阅读(1448) 评论(2) 推荐(2) 编辑
摘要: 检查服务 VMnetDHCP,VMware NAT Service 服务是否已启动,启动后可以正常使用网络 阅读全文
posted @ 2023-03-24 08:56 VipSoft 阅读(345) 评论(0) 推荐(0) 编辑
摘要: net use X: \\172.16.0.88\Tools /persistent:yes /user:share share Windows Service 服务,无法访问共享盘,无法访问挂载盘,无法访问(网络映射盘) 阅读全文
posted @ 2023-03-23 21:11 VipSoft 阅读(764) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 49 下一页