- 博客(144)
- 资源 (7)
- 收藏
- 关注
原创 Nginx静态资源增加权限验证
在互联网环境中,Nginx代理静态资源时存在信息泄露风险,尤其是文件存储路径有规律时。为增强安全性,本文提出了两种权限验证方案。方式一适用于二次开发项目,通过系统登录后存储的token进行鉴权,Nginx在访问文件时调用权限认证接口,验证成功则返回文件,否则拒绝访问。方式二适用于项目初期,引入鉴权码作为防火墙,用户需先调用权限获取接口获取鉴权码,再通过Nginx访问文件。两种方式均需调整Nginx配置,并确保Nginx安装了http_auth_request_module模块。本文还提供了前后端代码示例及N
2025-05-09 18:38:32
917
原创 java.util.regex.PatternSyntaxException: Unclosed character class near index 31
java.util.regex.PatternSyntaxException: Unclosed character class near index 31
2025-01-02 16:08:22
429
原创 Could not connect to SMTP host: smtp.163.com, port: 465, response: -1
Could not connect to SMTP host: smtp.163.com, port: 465, response: -1
2024-12-20 15:22:16
1779
原创 Access denied for user ‘root‘@‘127.0.0.1‘ (using password: YES)
Access denied for user ‘root‘@‘127.0.0.1‘ (using password: YES)
2024-11-19 16:27:44
572
原创 Bean named ‘ddlApplicationRunner‘ is expected to be of type ‘org.springframework.boot.Runner‘
Bean named 'ddlApplicationRunner' is expected to be of type 'org.springframework.boot.Runner' but was actually of type 'org.springframework.beans.factory.support.NullBean'
2024-11-19 16:16:46
817
原创 Initialization Sequence datacenterId:16 workerId:10
Initialization Sequence datacenterId:16 workerId:10
2024-11-19 16:09:29
532
原创 Nginx反向代理报错400 Request Header Or Cookie Too Large
Nginx反向代理报错400 Request Header Or Cookie Too Large
2024-11-01 16:58:25
1445
原创 Linux同时安装多个JDK(JDK8、JDK17、JDK21)
Linux同时安装多个JDK。两种方式:1、通过alias切换版本2、使用update-alternatives工具
2024-10-09 14:02:52
2414
原创 org.apache.catalina.core.StandardService stopInternal
导包时需要注意,包名以javax开头的需要改为jakarta;升级之后,由于Java EE已经变更为Jakarta EE。
2024-09-11 13:44:15
1204
原创 No data sources are configured to run this SQL and provide advanced code assistance
No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (Alt+Enter).
2024-08-30 20:06:05
734
原创 Bean named ‘redisTemplate‘ is expected to be of type ‘org.springframework.data.redis.core.StringRedi
Bean named 'redisTemplate' is expected to be of type 'org.springframework.data.redis.core.StringRedisTemplate' but was actually of type 'org.springframework.data.redis.core.RedisTemplate'
2024-08-30 19:55:00
1174
原创 Invalid value type for attribute ‘factoryBeanObjectType‘: java.lang.String
Invalid value type for attribute 'factoryBeanObjectType': java.lang.String
2024-08-13 16:49:59
453
2
原创 java.lang.IllegalArgumentException: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are require
java.lang.IllegalArgumentException: Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are require
2024-08-13 15:44:18
1684
原创 java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ser/std/ToStringSerializerBase
java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ser/std/ToStringSerializerBase
2024-08-08 14:04:36
877
原创 Logging system failed to initialize using configuration from ‘null‘
Logging system failed to initialize using configuration from 'null'
2024-08-08 13:17:00
5236
1
原创 java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusPrinter2
java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusPrinter2
2024-08-08 10:25:09
2722
原创 java.nio.charset.MalformedInputException: Input length = 1
java.nio.charset.MalformedInputException: Input length = 1
2024-08-08 10:07:19
500
原创 @Autowired提示:Field injection is not recommended
@Autowired提示:Field injection is not recommended
2024-08-07 17:43:17
641
原创 javax.validation.constraints.NotEmpty 报错
javax.validation.constraints.NotEmpty 报错
2024-08-07 17:33:52
394
原创 无法访问jakarta.servlet.http.HttpServletRequest
无法访问jakarta.servlet.http.HttpServletRequest
2024-08-07 17:18:38
2528
原创 Method does not override method from its superclass
Method does not override method from its superclass
2024-08-07 16:35:01
489
原创 Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘com.sun.tools.javac.tree.
Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid'
2024-08-07 15:35:38
1132
原创 Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment
Unable to make field private com.sun.tools.javac.processing.JavacProcessingEnvironment
2024-08-07 15:28:04
522
大屏项目MySQL架构设计及搭建实战,数据库表机构设计,函数设计,视图设计,事件设计全纪录
2024-12-31
JAVA代码注释批量删除,及代码格式化
2024-11-19
Linux离线安装Zip
2024-07-23
用于Linux服务器,Nginx中间件搭建,配置涵盖域名配置,TLS配置,及配置安全的加密算法,处理跨域问题,请求头问题等
2024-07-11
Linux部署jar包,隐藏命令行参数
2023-08-01
国密算法的集成应用(sm2、sm3、sm4)
2023-07-19
JS动态加载题目及提交答案
2023-03-28
Springboot项目报文加密(采用AES、RSA动态加密策略)
2023-03-28
nmap-7.93-setup
2022-12-27
Excel导出全家桶代码源码
2022-10-19
SpringBoot项目启动报错
2024-08-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人