自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (3)
  • 收藏
  • 关注

原创 tomcat9服务启动时java.lang.OutOfMemoryError: Java heap space

tomcat9命令行启动成功,服务启动时堆溢出(已解决)

2024-06-06 14:25:24 135 1

原创 MyBatisPlus批量插入解决方案

springboot2.6.7+mybatisPlus批量插入,解决方案

2022-06-24 17:21:57 25551 1

原创 springboot+mybatisplus百万级数据加载内存优化之路

查mybatisplus查询优化

2022-06-24 16:56:01 3264 1

原创 AES的Openssl生成的密文文件使用java解密,以及java生成的密文文件使用openssl解密

Openssl生成的AES密文文件使用java解密,以及java生成的AES密文文件使用openssl解密

2022-01-20 15:48:28 1658 2

原创 ELementUI全局图标使用

背景:今日在使用elementui图标时,图标只能单个引用,无法一次引用。版本:vue3.x + elementui2.15.6 +@element-plus/icons-vue0.2.41,安装:# NPM$ npm install @element-plus/icons-vue2, 引用。import { createApp } from 'vue'import App from '@/App.vue'import router from '@/router'impor.

2021-12-27 19:20:04 1109 1

原创 关于Springboot全局异常处理输出具体错误信息问题!

框架:spring security oauth2 + springboot问题描述:使用注解【@RestControllerAdvice】进行全局异常处理后,不能输出具体异常类信息,这对问题排除无疑是一场灾难,如下图。2021-10-02 11:03:36.352 INFO 3420 --- [on(3)-127.0.0.1] org.mongodb.driver.connection : Opened connection [connectionId{localValu...

2021-10-02 11:25:43 3408

原创 Cannot invoke ***.MongoTemplate.findOne(xxx.Query,class)“ because “this.mongoTemplate“ is null

环境:Spring security oauth2+MmongoDB描述:refresh token 时报错请求uri为:POST http://localhost:8090/api/sso/oauth/token?client_id=clientId&client_secret=clientSecret&grant_type=refresh_token&refresh_token=cdf6ea33-4b5c-472c-b27b-3edfe2192421,错误信息为:

2021-09-16 18:22:33 1438

原创 No AuthenticationProvider found for org.***.PreAuthenticatedAuthenticationToken

框架:Spring security oauth2+MmongoDB问题描述:请求自定义登陆接口和使用默认接口都都能正常返回token信息,但携带refresh_token换取token时,则报错。自定义登陆接口相关配置和错误信息如下。ResourceConfig配置如下:@EnableResourceServer@Configurationpublic class ResourceServerConfig extends ResourceServerConfigurerAdapter

2021-09-14 18:14:57 4321 2

原创 cannot call sendError() after the response has been committed

框架:springboot+IDEA+spring securityoauth2背景:用户登陆获取token,用户名或密码验证失败时,执行onAuthenticationFailure方法,已经正常返回错误码和错误信息,但控制台仍然抛出异常,错误信息如下。2021-09-12 07:16:25.490 WARN 964 --- [nio-8090-exec-1] d.c.h.CustomAuthenticationFailureHandler : 认证失败,返回报文为:{"code":1100..

2021-09-12 07:49:20 9228

原创 IDEA社区版使用字体连字

设置效果前后比较:设置方法:1,打开IDEA的设置面板(ctrl+alt+s或file->setting),编辑器(editor)->字体(Font),把首选字体样式改为“JetBrains Mono”,并勾选“启用字体连写”,而后点击右下角应用。如图所示。...

2021-07-02 09:42:16 1877 1

原创 java_集合简说

序言java中的集合,分为单列集合和双列集合,单列集合实现于Collection接口,双列集合实现于Map接口(以键值对的方式存储)。

2021-06-02 16:29:32 87

原创 IDEA创建gradle项目犹如乌龟爬行(缓慢)解决方案

使用IDEA创建gradle之时,时长感到缓慢无比,上网搜索良久,终于找到解决方法,特于此分享,经本人亲测,确实有光速提升。1,缓慢之由一:下载gradle包缓慢,首次创建项目皆要下载gradle***.zip(gradle包)。解决办法:使用迅雷下载把包下载(几秒),后设置IDEA的gradle路径,过程如下。 (1)使用迅雷下载gradle包,地址为:https://downloads.gradle-dn.com/distributions/gradle-6.6.1-bin.zip。...

2020-09-09 22:37:42 6252 1

原创 springsecurity4+JWT+vue+axios无法获取用户名和密码,前后端分离。

直接访问spring security4的登录接口,用postman能登录成功,改为谷歌浏览器访问则参数无法获取。原因:btainUsername(request)或request.getParameter("xxx")只能接收表单数据,不能接收json/text数据。解决办法:1,获取请求体。JWTAuthenticationFilter类如下package com.ex...

2019-11-20 16:32:59 624

原创 springsecurity4+jwt和vue.js+axios跨域问题

后端用springboot + spring security4 + JWT,前端用vue.js+axios发送post老是请求失败,在网上查了各种文章,问题最终解决。 1,首先在继承于WebSecurityConfigurerAdapter类的子类中(我的是WebSecurityConfig)设置cors属性。package com.example.secur...

2019-11-20 16:19:42 336

原创 java中整形变量范围

在java的基本数据类型中,整形变量有四种,即byte、short、int、long。类型 byte short int long 字节数 1 2 4 8 位数 8 16 32 64 范围 -2^7 至 2^7-1 -2^15 至 2^15-1 -2^31 至 2^31-1 ...

2019-07-21 18:51:07 3564

原创 springboot @Schedul报错,***.factory.BeanCreationException: Error creating bean with with name '‘

 错误信息如下:Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2018-12-12 11:52:31.351 ERROR 9280 --- [ main] o.s.boot.SpringA...

2018-12-12 12:04:48 641

原创 java BufferedRead读取txt文件

public static void readBuff(){ File file = new File("D:\\io\\A.txt"); try{ FileInputStream fileReader = new FileInputStream(file); BufferedReader read = new Bu...

2018-12-03 17:32:52 1548

转载 java 管道(pipedStream)详解

地址链接:http://www.cnblogs.com/skywang12345/p/io_04.html上述博客已经写的很详细,管道流的作用:不同线程之间的通信。out.connect(out)等价于in.connect(in)。且缓冲区的默认大小为1024字节。...

2018-12-03 14:30:04 651

原创 java FileInputStream与FileOutputStream复制文件

public static void copy() throws Exception{ File file = new File("D:\\io\\E.jpeg"); //文件路径及文件名 FileInputStream input = new FileInputStream(file); File copyToFile = new File("D:\\io\\copy\...

2018-11-30 16:57:28 158

原创 java 利用FileOutputStream类把内容写入txt文件

public static void fileOutPutStream() throws Exception{ String str = "君不见黄河之水天上来,奔流到海不复回。君不见高堂明镜悲白发,早如青丝暮成雪。";//写入的内容 File file = new File("D:\\io\\B.txt"); //写入的路径及文件名 FileOu...

2018-11-30 16:40:40 2976

原创 使用FileInputStream读取txt文件

我们常说的集合一般分为两种,即List与Map集合。本文阐述他们的种类与关系。

2018-11-30 15:05:50 1687

原创 CSDN kotlin学习笔记之as关键字

1,类型转换。2,重取别名。3, as? 表示安全类型转换。

2018-11-27 17:48:59 1630

vim常用命令

本文档是常用vim编辑器的一个总结,都是在写代码的时候经常用到的命令的总结。

2019-07-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除