上一页 1 2 3 4 5 6 7 8 ··· 37 下一页

Springboot中使用GSON报错 An attempt was made to call the method com.google.gson.GsonBuilder.setLenient

摘要: 错误如下: Description: An attempt was made to call the method com.google.gson.GsonBuilder.setLenient()Lcom/google/gson/GsonBuilder; ... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(265) 评论(0) 推荐(0)

mysql 错误:The driver has not received any packets from the server.

摘要: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the serv... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(827) 评论(0) 推荐(0)

IDEA @AutoWired注入bean 出现红色波浪线

摘要: 出现此问题只是idea自身检测的问题,这不是bug,不影响项目运行。 去除该情况的红色波浪线: 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(133) 评论(0) 推荐(0)

JAVA 最常用实用的正则表达式校验

摘要: 正则表达式校验工具类; import java.util.regex.Pattern;/** * @Author:JCccc * @Description: 常用正则表达式校验工具类 * @Date: */public class RegExUtil { ... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(1778) 评论(0) 推荐(0)

Springboot 整合WebFlux 实现RESTFUI风格API 及简单的CRUD

摘要: 这里简单介绍下springboot整合webFlux(入门) ,使用netty通信。 首先是创建一个springboot项目,这里就不介绍怎么创建了。 接下来是导入依赖包: org.springframework.boot spri... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(284) 评论(0) 推荐(0)

Springboot 读取配置文件application.properties (yml)的四种方式

摘要: 一般我们默认创建完springboot后,配置文件是放在当前根目录里面的。 其实,很残酷的是,这种默认的读取配置方式是4种方式里面优先级最低的。 那么那些优先级最高呢,4种方式我们按照优先级最高的一个个介绍下: 第一种, 当前项目根目录下的config目录下(... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(2079) 评论(0) 推荐(0)

Springboot 指定获取自己写的配置properties文件的值

摘要: 获取yml的可以参考这篇: Springboot 指定获取出 yml文件里面的配置值 https://blog.csdn.net/qq_35387940/article/details/106209485 直接进入正题, 先创建一个 配置文件test_... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(238) 评论(0) 推荐(0)

JAVA AES加密解密工具类

摘要: import org.apache.commons.codec.binary.Base64;import javax.crypto.Cipher;import javax.crypto.spec.SecretKeySpec;/** * @Author JCc... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(419) 评论(0) 推荐(0)

Springboot 快速了解 事务回滚@Transactional

摘要: 事务控制一般在一些比较重要的业务都需要考虑。 进入正题,关于事务Transactional 的要点以及使用方式: @Transactional 1.需要将使用事务注解的方法设置为public; 2.如果没有在注解后做异常配置,只会对手动抛出的 throw... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(167) 评论(0) 推荐(0)

Springboot Mybatis使用pageHelper实现分页查询

摘要: 以下介绍实战中数据库框架使用的是mybatis,对整合mybatis此处不做介绍。 使用pageHelper实现分页查询其实非常简单,共两步: 一、导入依赖; 二、添加配置; 那么开始, 第一步: pom.xml添加依赖: com.g... 阅读全文
posted @ 2022-11-08 07:36 小目标青年 阅读(376) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 37 下一页