随笔分类 -  JAVA

上一页 1 2 3 4 5 6 7 ··· 14 下一页
JAVA
摘要:之前配过环境变量,但是后来打开还是报 zsh: command not found: mvn 需要在运行前先刷下环境变量 source ~/.bash_profile 每次使用前都刷一下比较麻烦,这是因为当 Mac 上安装了 zsh 后,.bash_profile 文件的配置无法生效 最终解决方案: 阅读全文
posted @ 2023-11-14 10:40 VipSoft 阅读(1173) 评论(0) 推荐(0) 编辑
摘要:Java 调 webservice 报如下错误 [2023-11-07 17:01:02.315] ERROR [scheduling-1] ToHisApiImpl.java:106 - No compiler detected, make sure you are running on top 阅读全文
posted @ 2023-11-08 09:33 VipSoft 阅读(202) 评论(0) 推荐(0) 编辑
摘要:TreeMap是Map家族中的一员,也是用来存放key-value键值对的。平时在工作中使用的可能并不多,它最大的特点是遍历时是有顺序的,根据key的排序规则来 TreeMap是一个双列集合,是Map的子类。底层由红黑树结构构成。 TreeMap是一个基于key有序的key value散列表。 ma 阅读全文
posted @ 2023-11-07 15:29 VipSoft 阅读(59) 评论(0) 推荐(0) 编辑
摘要:Java中的匿名函数(也称为匿名内部类或lambda表达式)是一种简洁的代码表达方式,它允许你定义一个没有名称的函数并将其传递给其他函数或方法。以下是一些使用匿名函数的好处: 简洁性:匿名函数能够以更简洁的方式编写代码,避免了创建完整的类或接口的冗长和繁琐。 减少代码重复:匿名函数可以重用,避免重复 阅读全文
posted @ 2023-11-02 13:06 VipSoft 阅读(933) 评论(0) 推荐(0) 编辑
摘要:Error:java: Compilation failed: internal java compiler error 出现这个错误的原因主要是因为 JDK 版本问题,有两个原因,一个是编译器版本不匹配,一个是当前项目 JDK 版本不支持。 File --> Project Structure - 阅读全文
posted @ 2023-10-18 17:00 VipSoft 阅读(60) 评论(0) 推荐(0) 编辑
摘要:Spring Boot的版本高于 2.4以后 ,原来的配置已经不适合目前的版本 将代码中的`allowedOrigins`改为`allowedOriginPatterns` ```java @Configuration public class WebConfig implements WebMvc 阅读全文
posted @ 2023-09-01 09:03 VipSoft 阅读(141) 评论(0) 推荐(0) 编辑
摘要:执行 Oracle 存储过程时,出现 “PLS-00103: 出现符号 ")"在需要下列之一时:”, ``` Cause: java.sql.SQLException: ORA-06550: 第 22 行, 第 4 列: PLS-00103: 出现符号 ")"在需要下列之一时: ( - + case 阅读全文
posted @ 2023-08-31 09:02 VipSoft 阅读(1148) 评论(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 阅读(137) 评论(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 阅读(270) 评论(0) 推荐(0) 编辑
摘要:[TOC] ![image](https://img2023.cnblogs.com/blog/80824/202302/80824-20230201133344225-1260068838.png) ## 类的表示(Class) 第一层:显示类的名称,如果是抽象类,则就用斜体显示。 第二层:是类的 阅读全文
posted @ 2023-07-27 19:44 VipSoft 阅读(1634) 评论(0) 推荐(3) 编辑
摘要:先配置 SpringBoot 记录 access.log 日志,先让accesslog 显示出来 阅读全文
posted @ 2023-07-21 15:24 VipSoft 阅读(194) 评论(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 阅读(335) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 集成 SpringSecurity + MySQL + JWT 无太多理论,直接盘 一般用于Web管理系统 可以先看 SpringBoot SpringSecurity 基于内存的使用介绍 本文介绍如何整合 SpringSecurity + MySQL + JWT 数据结构 数 阅读全文
posted @ 2023-05-04 13:03 VipSoft 阅读(1459) 评论(0) 推荐(7) 编辑
摘要:SpringBoot 集成 Security 时,报 Encoded password does not look like BCrypt 原因:SecurityConfig 必须 Bean 的形式实例化 /** * 配置用户身份的configure()方法 * * @param auth * @t 阅读全文
posted @ 2023-05-03 20:46 VipSoft 阅读(687) 评论(0) 推荐(0) 编辑
摘要:java list 中的字符是否包括在另一个 list 中 ,::方法使用 阅读全文
posted @ 2023-05-02 23:15 VipSoft 阅读(121) 评论(0) 推荐(1) 编辑
摘要:SpringBoot 集成 SpringSecurity + MySQL + JWT 附源码,废话不多直接盘 SpringBoot已经为用户采用默认配置,只需要引入pom依赖就能快速启动Spring Security。 目的:验证请求用户的身份,提供安全访问 优势:基于Spring,配置方便,减少大 阅读全文
posted @ 2023-04-28 09:35 VipSoft 阅读(626) 评论(2) 推荐(3) 编辑
摘要:Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration. 阅读全文
posted @ 2023-04-25 14:49 VipSoft 阅读(1722) 评论(0) 推荐(0) 编辑
摘要:Java 的 SPI 机制 Java SpringBoot 加载 yml 配置文件中字典项 Spring的Factories就是Spring版本的Java Spi。 Spring Factories的最重要的功能就是:可以通过配置文件指定Spring容器加载一些特定的组件。 Spring Facto 阅读全文
posted @ 2023-04-21 08:48 VipSoft 阅读(356) 评论(0) 推荐(1) 编辑
摘要:什么是SPI机制? SPI机制( Service Provider Interface)是Java的一种服务发现机制,为了方便应用扩展。那什么是服务发现机制?简单来说,就是你定义了一个接口,但是不提供实现,接口实现由其他系统应用实现。你只需要提供一种可以找到其他系统提供的接口实现类的能力或者说机制. 阅读全文
posted @ 2023-04-20 12:03 VipSoft 阅读(123) 评论(0) 推荐(0) 编辑
摘要:实际项目中,如果将该类信息放配置文件中的话,一般会结合Nocas一起使用 将字典数据,配置在 yml 文件中,通过加载yml将数据加载到 Map中 Spring Boot 中 yml 配置、引用其它 yml 中的配置。# 在配置文件目录(如:resources)下新建application-xxx 阅读全文
posted @ 2023-04-19 12:20 VipSoft 阅读(1047) 评论(2) 推荐(2) 编辑

上一页 1 2 3 4 5 6 7 ··· 14 下一页
点击右上角即可分享
微信分享提示