
JAVA
秋9
奋斗,奋斗……
展开
-
java实现下载网络图片到本地,附完整Java代码
java实现下载网络图片到本地,直接上代码。原创 2023-04-21 07:17:43 · 4770 阅读 · 0 评论 -
http协议之digest(摘要)认证,详细讲解并附Java SpringBoot源码
http协议之digest(摘要)认证,详细讲解并附Java SpringBoot源码原创 2022-12-04 17:17:44 · 7498 阅读 · 4 评论 -
报This application has no explicit mapping for /error, so you are seeing this as a fallback解决方法
Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.原创 2022-12-04 14:52:22 · 4915 阅读 · 0 评论 -
JavaMailSenderImpl发送邮件报java.net.SocketTimeoutException: Read timed out的解决方法
DEBUG SMTP: trying to connect to host "smtp.163.com", port 465, isSSL falseDEBUG SMTP: exception reading response, THROW: java.net.SocketTimeoutException: Read timed out原创 2022-12-02 22:22:53 · 2673 阅读 · 1 评论 -
User must be authenticated with Spring Security before authorization can be completed.解决方法
org.springframework.security.authentication.InsufficientAuthenticationException: User must be authenticated with Spring Security before authorization can be completed.原创 2022-11-26 22:20:09 · 3826 阅读 · 3 评论 -
Java实现操作阿里云OSS云存储详解,含配置和完整代码
Java实现操作阿里云OSS云存储详解,含配置和完整代码原创 2022-11-07 07:50:34 · 7714 阅读 · 4 评论 -
org.apache.tomcat.util.http.fileupload.IOUtils报错,对应jar是哪个?
org.apache.tomcat.util.http.fileupload.IOUtils是tomcat中自带的tomca-coyote.jar中的类原创 2022-11-06 21:29:39 · 734 阅读 · 0 评论 -
从地址中如何提取或者识别街道?支持模糊地址
从地址中如何提取或者识别街道?原创 2022-10-01 10:57:57 · 2487 阅读 · 0 评论 -
ClassNotFoundException: com.fasterxml.jackson.databind.AnnotationIntrospector$XmlExtensions的解决方法
java.lang.ClassNotFoundException: com.fasterxml.jackson.databind.AnnotationIntrospector$XmlExtensions原创 2022-09-02 15:54:41 · 3437 阅读 · 0 评论 -
ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission denied解决方法
Aug 28 13:33:12 ecs-demo systemd[1873387]: eye.service: Failed to execute command: Permission deniedAug 28 13:33:12 ecs-demo systemd[1873387]: eye.service: Failed at step EXEC spawning /app/znzm/eye/eye.jar: Permiss>原创 2022-08-28 13:46:57 · 1126 阅读 · 0 评论 -
Possibly consider using a shorter maxLifetime value.解决方法
HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@7df9ca28 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.原创 2022-08-24 15:37:06 · 1785 阅读 · 0 评论 -
Linux,Redis中IOException: 远程主机强迫关闭了一个现有的连接。解决方法
[ERROR] Exception occured. Channel: [id: 0x60dbc204, L:/192.168.0.107:64658 - R:104.115.158.104/104.115.158.104:6379] - 2022-08-09 22:25:28,352 [redisson-netty-2-7] org.redisson.client.handler.CommandsQueue(exceptionCaught,153) java.io.IOException: 远程主机强迫原创 2022-08-09 22:56:35 · 5286 阅读 · 2 评论 -
IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/mybatis-plus-support-jar
Exception in thread "main" java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/mybatis-plus-support-2.3.2.jar原创 2022-08-03 18:15:58 · 2582 阅读 · 0 评论 -
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)原创 2022-08-03 18:10:46 · 1388 阅读 · 0 评论 -
Java实现下载文件功能到本地电脑中,附源码和截图
Java实现下载文件功能到本地电脑的完整源码原创 2022-07-28 14:46:06 · 792 阅读 · 0 评论 -
Java以行的方式,快速读取大文件的2种实现方法,附完整代码和测试结果
Java读取1272447行数据,存入List中,用时:396毫秒。原创 2022-07-27 16:49:22 · 2793 阅读 · 2 评论 -
java.lang.ClassNotFoundException: net.sf.jsqlparser.expression.Function解决方法
Servlet.service() for servlet [dispatcherServlet] in context with path [/resource] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: net/sf/jsqlparser/expression/Function] with root causejava.lang.ClassNotFound原创 2022-07-26 08:35:32 · 2113 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: Could not initialize class com.baomidou.mybatisplus.toolkit.SqlUtils
java.lang.NoClassDefFoundError: Could not initialize class com.baomidou.mybatisplus.toolkit.SqlUtils原创 2022-07-25 14:52:50 · 2104 阅读 · 1 评论 -
threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index]
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Circular view path [index]: would dispatch back to the current handler URL [/index] again. Check your ViewResolver setup! (Hint: This may be the result of an unspeci原创 2022-07-24 09:37:26 · 1220 阅读 · 2 评论 -
Error:(162, 111) java: -source 1.5 中不支持方法引用 (请使用 -source 8 或更高版本以启用方法引用)的解决方法
Error:(162, 111) java: -source 1.5 中不支持方法引用 (请使用 -source 8 或更高版本以启用方法引用)原创 2022-07-22 14:50:56 · 3280 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.dataformat.yaml.YAMLFactory的解决方法
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.dataformat.yaml.YAMLFactory原创 2022-07-18 16:07:35 · 2725 阅读 · 0 评论 -
java: 程序包org.springframework.boot.context.properties不存在的解决方法
java: 程序包org.springframework.boot.context.properties不存在的解决方法原创 2022-07-16 11:46:17 · 3015 阅读 · 0 评论 -
Java项目或者APP中,自动检测网络是否正常的实现方法
Java项目或者APP中,自动检测网络是否正常的实现方法。原创 2022-07-15 09:24:39 · 1208 阅读 · 0 评论 -
Failed to convert from type [java.lang.Object[]] to type HashMap<String, String>的解决方法
ConversionFailedException: Failed to convert from type [java.lang.Object[]] to type [@org.springframework.data.jpa.repository.Query java.util.HashMap] for value原创 2022-07-14 15:35:54 · 1056 阅读 · 0 评论 -
启动rocketmq,报错误: Please set the JAVA_HOME variable in your environment, We need java(x64)!的解决方法
Please set the JAVA_HOME variable in your environment, We need java(x64)!原创 2022-07-05 14:01:38 · 1402 阅读 · 0 评论 -
启动rocketmq,报错误: Please set the ROCKETMQ_HOME variable in your environment!的解决方法
Please set the ROCKETMQ_HOME variable in your environment!原创 2022-07-05 13:59:44 · 8942 阅读 · 4 评论 -
Windows环境变量,JAVA_HOME设置后,如何立即生效?
在windows环境下设置java的环境变量,马上生效原创 2022-07-05 13:56:35 · 3941 阅读 · 0 评论 -
Plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘ not found的解决方法
Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found原创 2022-06-21 14:37:33 · 1866 阅读 · 1 评论 -
java对接阿里云短信服务器,附代码和截图
java对接阿里短信原创 2022-06-14 12:47:21 · 939 阅读 · 2 评论 -
ajax请求发送成功但不进success,或者时而进时而不进的解决方法
ajax请求发送成功但不进success,或者时而进时而不进,情况比较多,大部分是数据格式不对,下面分享一种大家容易忽略,导致时而进时而不进的问题。原创 2022-06-03 12:23:16 · 1433 阅读 · 0 评论 -
Ubuntu 20.04 安装 Redis
Ubuntu 20.04 安装Redis 5.0 cd /app/software apt update apt install redis-server 启动、停止、重启安装完成后Redis会自动启动,可以用systemctl来控制Redis的启动、停止、重启等 # 查看状态 systemctl status redis-server.service # 启动 systemctl start redis-server.s原创 2022-05-20 18:12:03 · 698 阅读 · 0 评论 -
vue中下载excel文件4种方法
目录1、通过url下载2、通过 a 标签 download 属性结合 blob 构造函数下载3、通过 js-file-download 插件4、使用fetch下载1、通过url下载即后端提供文件的地址,直接使用浏览器去下载通过window.location.href = 文件路径下载window.location.href = `${location.origin}/operation/ruleImport/template`通过 window.open(ur.原创 2022-04-10 08:01:40 · 24348 阅读 · 9 评论 -
vue中a标签实现带header的下载excel文件
import Cookie from 'js-cookie'界面: <a-button slot="extra" type="primary" @click="exportFile" ><a-icon type="download" />导出</a-button>js方法 exportFile() { fetch('http://.原创 2022-04-10 06:42:46 · 2577 阅读 · 0 评论 -
Got a packet bigger than ‘max_allowed_packet‘ bytes解决方法
【现象】导入sql时,报如下错误Error occured at:2022-03-31 15:58:54Line no.:151Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes【解决方法】执行SET GLOBAL max_allowed_packet=150000000;150000000表示是150M左右大小...原创 2022-03-31 16:17:45 · 416 阅读 · 1 评论 -
微信开发者工具中,新建git本地分支并上传到git服务器中
微信开发者工具中,git使用,这里就不阐述了,重点说一下创建本地分支并提交到远程git服务器中。1.创建本地分支注意了,新分支名称,下方的输入框是灰色的,是可以输入的,输入新的分支名称,点确认2.提交到远程git服务器还是不会操作的,欢迎留言。...原创 2022-03-21 20:32:02 · 8287 阅读 · 1 评论 -
java 获取包下的所有类,附完整源码和测试代码
java 获取包下的所有类,完整Java代码如下:package com.example.demo.util;import java.io.File;import java.io.FileFilter;import java.io.IOException;import java.net.JarURLConnection;import java.net.URL;import java.net.URLDecoder;import java.util.Enumeration;impor原创 2022-03-16 21:55:18 · 4278 阅读 · 1 评论 -
springboot连接mongodb报UncategorizedMongoDbException: Command failed with error 13 (Unauthorized)解决方法
【现象】failed; nested exception is org.springframework.data.mongodb.UncategorizedMongoDbException: Command failed with error 13 (Unauthorized): 'command insert requires authentication' on server localhost:27017. The full response is {"ok": 0.0, "errmsg": "原创 2022-03-16 17:27:14 · 7904 阅读 · 0 评论 -
Plugin ‘com.android.application‘ is already on the script classpath的解决方法
【现象】Build file 'D:\work\app\build.gradle' line: 2Error resolving plugin [id: 'com.android.application']> Plugin 'com.android.application' is already on the script classpath. Plugins on the script classpath cannot be applied in the plugins {} block.原创 2022-02-22 13:39:09 · 6888 阅读 · 0 评论 -
Error:Maven Resources Compiler: Maven project configuration required for module ‘XX‘ isn‘t available
【现象】Error:Maven Resources Compiler: Maven project configuration required for module 'xxx' isn't available. Compilation of Maven projects is supported only if external build is started from an IDE.【解决方法】原创 2022-02-21 21:27:13 · 522 阅读 · 0 评论 -
调用阿里云的通用文字识别-高精版识别接口,识别图片中的文字详解
阿里云的通用文字识别-高精版识别接口地址:通用文字识别 - 文字识别(OCR) - 阿里云直接上代码核心代码package com.aliyun.sample;import com.aliyun.tea.*;import com.aliyun.ocr_api20210707.*;import com.aliyun.ocr_api20210707.models.*;import com.aliyun.teaopenapi.*;import com.aliyun.teaopenap原创 2022-02-05 22:17:46 · 3572 阅读 · 3 评论