- 博客(6)
- 收藏
- 关注
原创 修改es配置--“max_result_window“
1.查询es配置:curl -XGET xx.xx.xx.xx:9200/index/_settings2.修改"max_result_window"配置curl -H “Content-Type:application/json” -XPUT xx.xx.xx.xx:9200/index/_settings -d ‘{“index.max_result_window”:“100000”}’
2021-06-08 10:33:11
1712
原创 解决com.alibaba.fastjson.JSONException: autoType is not support. xs:string问题
解决com.alibaba.fastjson.JSONException: autoType is not support. xs:string问题产生原因:由于公司漏洞扫描,fastjson在反序列化时存在漏洞,可导致远程任意代码执行,fastjson版本需要升级;升级fastjson的版本后,禁用了部分autotype的功能,由于反序列化对象时,需要检查是否开启了autotype。所以如果反序列化检查时,autotype没有开启,就会报错。解决办法:开启autotype:添加JVM启动参数:-
2021-06-03 10:57:29
484
原创 Navicat查看已经连接的数据库密码
Navicat查看已经连接的数据库密码1.从Navicat导出数据库(connections.ncx);2.将文本中数据库的密码放在次内容最后的decrypt中在这里插入代码片<?phpclass NavicatPassword{ protected $version = 0; protected $aesKey = 'libcckeylibcckey'; protected $aesIv = 'libcciv libcciv '; protected $bl
2020-11-18 15:07:34
3389
2
原创 SpingBoot项目将jar包改为war包
1、修改pom文件,将<packaging>jar</packaging>修改为<packaging>war</packaging>;2、pom文件,增加插件 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</a...
2020-07-02 15:15:43
209
1
原创 Spring---@Conditional相关注解总结
springBoot----@Conditional相关注解总结总结1总结2总结1@Conditional(TestCondition.class)这句代码可以标注在类上面,表示该类下面的所有@Bean都会启用配置,也可以标注在方法上面,只是对该方法启用配置。@ConditionalOnBean(仅仅在当前上下文中存在某个对象时,才会实例化一个Bean)@ConditionalOnCla...
2019-03-20 11:10:50
261
原创 eclipse导入git项目,报错:The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Pa
怎样处理JSP页面首部报错:The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path错误如下: 解决办法:http://jingyan.baidu.com/article/f79b7cb34f40569144023ef9.html,图文并茂,可以说是非常详细了。...
2018-08-16 11:15:39
283
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人