java
心里疯
这个作者很懒,什么都没留下…
展开
-
mybatis插入数据报错:#23000,#22001,1054
Cause: java.sql.SQLIntegrityConstraintViolationException: #23000我的这个错是由于主键冲突了导致原创 2021-01-07 11:12:40 · 6802 阅读 · 0 评论 -
shiro频繁访问redis,shiro在未登录情况下访问接口,接口返回很慢问题
1.自定义一个类继承FormAuthenticationFilter,指定在未登录情况下返回的jsonpackage com.vantoplife.admin.config;import cn.hutool.json.JSONUtil;import com.vantoplife.admin.enums.AdminWebResponseCodeEnum;import com.vantoplife.core.response.Response;import lombok.extern.log4j.原创 2020-12-08 12:11:32 · 570 阅读 · 1 评论 -
Java对接C#的RSA加密http接口,C#提供公钥给Java,Java通过公钥去调用C#的http(post)接口
C#方提供的接口文档:1.5.2 签名方法 调用API时,需要将所有参数名称以及参数值加入签名,即:系统级参数(除去sign)名称、系统级参数值、应用级参数名称、应用级参数值全部加入签名。 I.签名参数串排序 签名时,根据参数名称,将除签名(sign)外所有请求参数按照字母先后顺序排序: key + value .... key + value 。 注: 1、排序若首字母相同,则对第...原创 2019-04-22 15:24:19 · 705 阅读 · 0 评论 -
Tomcat启动报错,The APR based Apache Tomcat Native library which allows optimal performance in production
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:报错截图!!!修改方法:原创 2019-06-03 16:02:54 · 192 阅读 · 0 评论