Springboot
zhangvalue
在奋进的路上,大家都是独行者!
展开
-
SpringBoot文件上传文件大小限制The field file exceeds its maximum permitted size of 1048576 bytes.
SpringBoot文件上传文件大小限制The field file exceeds its maximum permitted size of 1048576 bytes.Maximum upload size exceeded; nested exception is java.lang.IllegalStateException: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException原创 2022-02-15 18:38:47 · 3473 阅读 · 1 评论 -
Idea使用Fast Request接口调试
Idea使用Restful Fast Request接口调试一. Idea安装Restful Fast Request 插件,安装完之后重启二、打开Idea中的Fast Request配置项目名和环境三、为具体的项目勾选环境四、使用上传文件点击方法左边的小飞机,右侧就会自动生成对应调试接口五、点击绿色小飞机,将查询的结果保存到getPathInfo文件中使用Json插件查看对比查看hdfs中zhangvalue目录的文件六、尝试将jpg上传到/zhangvalue目录下原创 2022-02-15 18:33:28 · 3728 阅读 · 4 评论 -
Spring-Data-Jpa的Sort排序时遇到的问题 has private access in ‘org.springframework.data.domain.Sort‘
springboot2.2.1(含)以上的版本Sort已经不能再实例化了,构造方法已经是私有的了!'Sort(org.springframework.data.domain.Sort.Direction, java.util.List<java.lang.String>)' has private access in 'org.springframework.data.domain.Sort'我们可以改用Sort.by获得Sort对象 public static PageReque原创 2021-01-26 22:17:10 · 1143 阅读 · 0 评论 -
Failed to introspect Class [com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration]
Coused by :Failed to introspect Class [com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration]错误日志如下:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfig原创 2021-01-26 22:17:39 · 2034 阅读 · 0 评论 -
Springboot
1.什么是 Spring Boot ?传统的 SSM/SSH 框架组合配置繁琐臃肿,不同项目有很多重复、模板化的配置,严重降低了 Java 工程师的开发效率,而 Spring Boot 可以轻松创建基于 Spring 的、可以独立运行的、生产级的应用程序。通过对 Spring 家族和一些第三方库提供一系列自动化配置的 Starter,来使得开发快速搭建一个基于 Spring 的应用程序。Spring Boot 让日益臃肿的 Java 代码又重回简洁。在配合 Spring Cloud 使用时,还可以发挥更原创 2021-01-06 14:06:48 · 130 阅读 · 0 评论 -
搭建SpringBoot项目阶段-groupId和artifactId
groupid和artifactId是什么?groupid和artifactId被统称为“坐标”是为了保证项目唯一性而提出的,如果你要把你项目弄到maven本地仓库去,你想要找到你的项目就必须根据这两个id去查找。 groupId和artifactId是maven管理项目包时用作区分的字段,就像是地图上的坐标。artifactId:artifactId一般是项目名或者模块名groupId和artifactId是maven管理项目包时用作区分的字段,就像是地图上的坐标。groupId:grou原创 2020-11-04 14:57:57 · 1772 阅读 · 0 评论 -
SpringBoot项目启动后自动打开浏览器
编写一个类,注册为Spring的Bean,然后实现CommandLineRunner接口,重写run()方法即可package com.example.demo.config;import org.springframework.boot.CommandLineRunner;import org.springframework.stereotype.Component;@Componentpublic class OpenBrowser implements CommandLi...原创 2020-11-03 10:18:40 · 2744 阅读 · 3 评论 -
spring boot中控制台打印sql日志
在application.properties中添加#spring boot中控制台打印sql日志#com.example.demo.dao 是dao的位置logging.level.com.example.demo.dao=debug最终propertites为spring.datasource.url=jdbc:mysql://localhost:3306/c?serverTimezone=Asia/Shanghaispring.datasource.username=roots原创 2020-09-23 15:50:54 · 5485 阅读 · 0 评论