随笔分类 -  JAVA

上一页 1 2 3 4 5 6 ··· 13 下一页
JAVA
摘要:执行 Oracle 存储过程时,出现 “PLS-00103: 出现符号 ")"在需要下列之一时:”, ``` Cause: java.sql.SQLException: ORA-06550: 第 22 行, 第 4 列: PLS-00103: 出现符号 ")"在需要下列之一时: ( - + case 阅读全文
posted @ 2023-08-31 09:02 VipSoft 阅读(930) 评论(0) 推荐(0) 编辑
摘要:Java 图片、文件 Base64 互转 ```java package com.thoth.his.base.util; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOExcept 阅读全文
posted @ 2023-08-07 14:42 VipSoft 阅读(119) 评论(0) 推荐(0) 编辑
摘要:Java 获取当前天是一年中的第几天 ```java @Test void dayofweed() throws Exception { System.out.println("2023-01-01 第 " + getWeekYearISO("2023-01-01")); System.out.pr 阅读全文
posted @ 2023-08-01 09:54 VipSoft 阅读(212) 评论(0) 推荐(0) 编辑
摘要:[TOC] ![image](https://img2023.cnblogs.com/blog/80824/202302/80824-20230201133344225-1260068838.png) ## 类的表示(Class) 第一层:显示类的名称,如果是抽象类,则就用斜体显示。 第二层:是类的 阅读全文
posted @ 2023-07-27 19:44 VipSoft 阅读(1191) 评论(0) 推荐(3) 编辑
摘要:先配置 SpringBoot 记录 access.log 日志,先让accesslog 显示出来 阅读全文
posted @ 2023-07-21 15:24 VipSoft 阅读(186) 评论(0) 推荐(0) 编辑
摘要:[toc] [liteflow](https://liteflow.yomahub.com/) 更适应我们的项目使用了它 [drools](https://www.drools.org/) 感觉复杂度高些 ### 项目介绍 官网地址:http://waitmoon.com/zh 视频地址:https 阅读全文
posted @ 2023-07-07 08:48 VipSoft 阅读(266) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 集成 SpringSecurity + MySQL + JWT 无太多理论,直接盘 一般用于Web管理系统 可以先看 SpringBoot SpringSecurity 基于内存的使用介绍 本文介绍如何整合 SpringSecurity + MySQL + JWT 数据结构 数 阅读全文
posted @ 2023-05-04 13:03 VipSoft 阅读(1300) 评论(0) 推荐(7) 编辑
摘要:SpringBoot 集成 Security 时,报 Encoded password does not look like BCrypt 原因:SecurityConfig 必须 Bean 的形式实例化 /** * 配置用户身份的configure()方法 * * @param auth * @t 阅读全文
posted @ 2023-05-03 20:46 VipSoft 阅读(581) 评论(0) 推荐(0) 编辑
摘要:java list 中的字符是否包括在另一个 list 中 ,::方法使用 阅读全文
posted @ 2023-05-02 23:15 VipSoft 阅读(116) 评论(0) 推荐(1) 编辑
摘要:SpringBoot 集成 SpringSecurity + MySQL + JWT 附源码,废话不多直接盘 SpringBoot已经为用户采用默认配置,只需要引入pom依赖就能快速启动Spring Security。 目的:验证请求用户的身份,提供安全访问 优势:基于Spring,配置方便,减少大 阅读全文
posted @ 2023-04-28 09:35 VipSoft 阅读(593) 评论(2) 推荐(3) 编辑
摘要:Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration. 阅读全文
posted @ 2023-04-25 14:49 VipSoft 阅读(1413) 评论(0) 推荐(0) 编辑
摘要:Java 的 SPI 机制 Java SpringBoot 加载 yml 配置文件中字典项 Spring的Factories就是Spring版本的Java Spi。 Spring Factories的最重要的功能就是:可以通过配置文件指定Spring容器加载一些特定的组件。 Spring Facto 阅读全文
posted @ 2023-04-21 08:48 VipSoft 阅读(315) 评论(0) 推荐(1) 编辑
摘要:什么是SPI机制? SPI机制( Service Provider Interface)是Java的一种服务发现机制,为了方便应用扩展。那什么是服务发现机制?简单来说,就是你定义了一个接口,但是不提供实现,接口实现由其他系统应用实现。你只需要提供一种可以找到其他系统提供的接口实现类的能力或者说机制. 阅读全文
posted @ 2023-04-20 12:03 VipSoft 阅读(108) 评论(0) 推荐(0) 编辑
摘要:实际项目中,如果将该类信息放配置文件中的话,一般会结合Nocas一起使用 将字典数据,配置在 yml 文件中,通过加载yml将数据加载到 Map中 Spring Boot 中 yml 配置、引用其它 yml 中的配置。# 在配置文件目录(如:resources)下新建application-xxx 阅读全文
posted @ 2023-04-19 12:20 VipSoft 阅读(941) 评论(2) 推荐(2) 编辑
摘要:Quartz 简单使用 Java SpringBoot 中,动态执行 bean 对象中的方法 源代码地址 => https://gitee.com/VipSoft/VipBoot/tree/develop/vipsoft-quartz 工作原理解读 只要配置好 DataSource Quartz 会 阅读全文
posted @ 2023-04-18 10:59 VipSoft 阅读(473) 评论(0) 推荐(2) 编辑
摘要:Java SpringBoot 7z 压缩、解压 阅读全文
posted @ 2023-04-17 13:33 VipSoft 阅读(1191) 评论(0) 推荐(1) 编辑
摘要:根据不同的条件,调用不同的 bean 对象,执行对象中的方法 阅读全文
posted @ 2023-04-14 13:08 VipSoft 阅读(1264) 评论(0) 推荐(0) 编辑
摘要:Scheduler 每次执行,都会根据JobDetail创建一个新的Job实例,这样就可以规避并发访问的问题(jobDetail的实例也是新的) Quzrtz 定时任务默认都是并发执行,不会等待上一次任务执行完毕,只要间隔时间到就会执行,如果定时任务执行太长,会长时间占用资源,导致其它任务堵塞 @D 阅读全文
posted @ 2023-04-12 11:49 VipSoft 阅读(389) 评论(0) 推荐(2) 编辑
摘要:MQTT连接池 主要用到 `InitializingBean、BasePooledObjectFactory、GenericObjectPool、GenericObjectPoolConfig` MQTT是一个轻量级传输协议,它被设计用于轻量级的发布/订阅式消息传输,MQTT协议针对低带宽网络,低计算能力的设备,做了特殊的优化。是一种简单、稳定、开放、轻量级易于实现的消息协议,在物联网的应用下的信息采集,工业控制,智能家居等方面具有广泛的适用性。 阅读全文
posted @ 2023-04-10 08:47 VipSoft 阅读(2465) 评论(0) 推荐(2) 编辑
摘要:SpringBoot sftp 连接池工具类 使用`GenericObjectPool`只需要创建一个对象工厂类,继承`BasePooledObjectFactory`并重写它的`create()`和`destroyObject()`。Apache Commons Pool是一个对象池的框架,他提供了一整套用于实现对象池化的API。它提供了三种对象池:GenericKeyedObjectPool,SoftReferenceObjectPool和GenericObjectPool,其中GenericObjectPool是我们最常用的对象池,内部实现也最复杂。 阅读全文
posted @ 2023-04-07 08:48 VipSoft 阅读(1093) 评论(2) 推荐(1) 编辑

上一页 1 2 3 4 5 6 ··· 13 下一页