![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
文章平均质量分 57
大梦_几千秋
一只迷茫的提莫
展开
-
SpringBoot中使用注解校验实体类参数
SpringBoot 的请求参数校验注解原创 2022-07-25 16:33:31 · 1002 阅读 · 0 评论 -
Name for argument of type [java.lang.String] not specified
No parameter name specified for argument of type [java.lang.String],原创 2022-07-21 17:23:34 · 7815 阅读 · 0 评论 -
Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M2:repackage (default
使用maven打包报错Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.0-M2:repackage (default1、问题描述2、配置文件3、解决前言:出现这个问题的原因就是spring-boot-maven-plugin插件没有指定版本,每次都会去获取这个插件的最新版本,但是最新版本不支持原有的一些配置写法导致的。这里需要指定一个旧版本1、问题描述公司的Springboot项目,一个月以原创 2022-04-19 16:23:35 · 17333 阅读 · 12 评论 -
SpringBoot项目上传大文件报错the request was rejected because its size exceeds the configured maximum 1048576
SpringBoot项目 上传大文件报错the request was rejected because its size exceeds the configured maximum 10485760在SpringBoot项目中进行文件上传的时间报错:the request was rejected because its size exceeds the configured maximum 10485760。这里是因为springboot默认配置 multipart.max-file-size大小原创 2022-03-31 09:15:05 · 18968 阅读 · 0 评论 -
SpringBoot在IDEA里实现热部署
SpringBoot在IDEA里实现热部署背景介绍开启IDEA的自动编译1.所有新项目开启2.当前项目开启开启IDEA的自动编译配置开启当前项目的热部署策略在pom文件中添加插件结语背景介绍我这里的IDEA版本是2021.1.3,可能版本不同,设置的地方会有差别在公司的项目中遇到的一个问题,那就是在开发客户的一个系统时,因为登录是需要手机验证码的,每一次测试都需要向客户要验证码,开发过程中哪怕是一个小的改动都需要重新获取验证码测试,所以就找了下实现热部署的方式,这里记录一下。大大的减少了索要验证码的原创 2022-03-22 11:04:54 · 8652 阅读 · 1 评论 -
SpringBoot打成Jar包获取resource下文件的问题
SpringBoot打成Jar包获取resource下文件的问题在本地IDEA中读取正常,打成Jar包后就无法访问的ClassPathResource类获取流在工作中遇到的问题,在idea中读取resource下的template文件夹下的模板文件时正常,但是打成Jar包之后在调用的时间读取报错File Not found exception下面是resource的目录结构,框选的是要读取的文件在本地IDEA中读取正常,打成Jar包后就无法访问的一开始的写法是下面这种:ResourceUti原创 2022-03-21 15:55:33 · 2190 阅读 · 2 评论 -
SpringBoot读取自定义properties配置文件方法
1.引入依赖 <!-- springboot configuration依赖 可以读取自定义的配置文件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId> spring-boot-configuration-processor</artifactId>原创 2022-03-08 14:29:39 · 3542 阅读 · 0 评论 -
SpringBoot使用PageHelper报错Relying upon circular references is discouraged and they are prohibited by
SpringBoot使用PageHelper报错Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setti原创 2022-03-07 12:19:42 · 4314 阅读 · 1 评论 -
SpringBoot项目打jar后执行jar包提示:xx没有主属性清单 解决
SpringBoot项目打jar包后执行jar包提示:xx没有主属性清单 解决今天在练习SpringBoot项目打jar包部署的时间遇见了一个问题:jar中没有主属性清单,对此也是比较疑惑,在百度之后找到了解决方式主属性清单是jar包中MANIFEST.MF文件中的属性,MANIFEST.MF文件在jar报的META-INF路径下用记事本打开发现里面的信息如下正常的文件应该是下面这样的对比之后会发现错误的文件少了很多信息,相关属性含义如下:Manifest-Version:原创 2022-03-07 09:55:05 · 6452 阅读 · 3 评论