logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

告别if-else炼狱!Spring Boot参数校验终极指南,代码精简70%

创建名为的工具类,定义校验方法/*** 商品实体类* @author 蜡笔小鑫星*/Validation.byProvider(HibernateValidator.class):使用HibernateValidator作为验证提供者,用于验证Java Bean的约束configure:用于对ValidatorFactory进行配置,可以设置不同的参数来调整验证行为failFast:配置是否快速失

文章图片
#spring boot#java#后端
解决: java.lang.RuntimeException: can not run elasticsearch as root

org.elasticsearch.bootstrap.StartupException: java.lang.RuntimeException: can not run elasticsearch as root

文章图片
#java#elasticsearch#jenkins +3
Cannot deserialize value of type `java.time.LocalDateTime` from String

在接口的测试中遇到了如下错误,该如何解决呢?Cannot deserialize value of type java.time.LocalDateTime from String或者Cannot deserialize value of type java.time.LocalDate from String在实体类中的参数类型为LocalDateTime,而在用Swagger或者Postman

#java
解决:WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail

WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, se

文章图片
#ssh#redis#linux
idea、datagrip连接MySQL报错,Communications link failure The last packet sent successfully to the server

连接mysql报错,Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.No appropriate protocol(protocol is

文章图片
#intellij-idea#mysql#java +1
maven修改本地仓库保存位置及远程仓库默认下载为阿里云仓库

maven修改本地仓库保存位置及远程仓库默认下载为阿里云仓库我们将maven配置安装好后,maven的一些默认配置并不是很好1.下载的依赖默认保存在我们的C盘,以后项目和依赖越来越多,会造成我们C的占用空间越来越大;2.maven的依赖远程默认下载地址为中央仓库,我们使用有时会下载的非常慢,并有可能会下载失败,导致我们的依赖无法使用解决方法1.修改依赖默认保存位置修改依赖默认的保存位置,也就是我们

#maven#java
解决:No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘

解决:No qualifying bean of type 'org.springframework.boot.autoconfigure.http.HttpMessageConverters' available: expected at least 1 bean which qualifies as autowire candidate.

文章图片
#spring cloud#spring boot#gateway
IntelliJ IDEA 配置JDK

IDEA配置JDK。我们的开发神器IDEA安装好了之后,在实际开发中,我们如何去配置好JDK的版本呢?注意:需要保证JDK在已经成功安装的情况下,再进行IDEA的配置现在就行动,让IntelliJ IDEA成为你征服代码山峰的利剑,一起创造不凡!

文章图片
#java#intellij-idea#ide
Nacos启动报错,无法正常启动

nacos启动报错,后台管理页面无法访问,启动失败

文章图片
#linux#运维#ssh
TortoiseGit(大乌龟)安装教程(Git 图形化工具,告别手敲命令)

还在为敲Git命令而烦恼,记不住Git命令而发愁?下面带来Git图形化工具,超详细 TortoiseGit 安装教程,告别敲命令,从此点点点官方下载地址:https://tortoisegit.org/download/

文章图片
#git#github#ssh
    共 12 条
  • 1
  • 2
  • 请选择