![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
隔壁老王ing
这个作者很懒,什么都没留下…
展开
-
java开发环境搭建汇总(java、tomcat、mysql、vue、git、node、idea的安装)
一:jdk下载安装官网下载地址:https://www.oracle.com/java/technologies/oracle-java-archive-downloads.html如何安装配置https://blog.csdn.net/qq_40881680/article/details/83585542二:tomcat下载安装官网下载地址:https://tomcat.apache.org/download-80.cgi如何安装配置:https://blog.csdn原创 2021-08-16 18:09:54 · 375 阅读 · 0 评论 -
Oracle通过树某一个节点查询树的最末(最后一级)子节点或叶子节点
一:问题数据库设计一个树形结构的的表。字段字段名称id菜单idparent_id父级菜单idmenu_name菜单名称create_time创建时间creator创建用户depth层级想通过任意一个层级的id都可以找到最后一级子节点的所有数据。(也就是树的最后一层叶子节点)二:解决思路解决方法1:原本想通过直接语句通过where depth = ‘’ 来查最后层级,但是想到树不同的分支可能有不同的层级,有些3,有些4,这样子就没原创 2021-07-05 09:38:28 · 3416 阅读 · 1 评论 -
elasticsearch(ES)的clear、refresh、fresh的区别及含义
一、 refresh官方文档:A refresh makes all operations performed on an index since the last refresh available for search. (意思是:将上一次刷新 后面的操作刷新缓存到指定索index上)当向elasticsearch发送创建document索引请求的时候,document数据会先进入到index buffer之后,与此同时会将操作记录在translog之中,当发生refresh时(数据从index b原创 2021-01-11 18:18:45 · 1540 阅读 · 0 评论 -
window环境下如何关闭或启动mysql服务
一:关闭mysql服务打开cmd,有些需要以管理员身份运行;输入以下命令行。net stop mysql二:启动mysql服务同上,命令行修改为:net start mysql原创 2021-01-04 09:13:21 · 812 阅读 · 0 评论 -
解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...
一 、问题查看日志,发现报错Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled,原创 2020-11-05 08:36:16 · 20083 阅读 · 7 评论 -
idea单元测试报错java.lang.IllegalStateException: Failed to load ApplicationContext ,Caused by: java.lang.
一:问题用单元测试时报错java.lang.IllegalStateException: Failed to load ApplicationContext ,而且找不到相关配置类二:解决方案1.网上有人说时jdk版本问题,切换jdk版本2.缺少相关的依赖3.idea配置maven时使用了默认的配置,没有使用自己下载的maven配置路径 (我是因为这个问题)...原创 2020-10-23 09:39:21 · 2514 阅读 · 0 评论 -
fastjson中出现 com.alibaba.fastjson.JSONException:(syntax error, expect {, actual string, pos 0)
一:原因分析原数据格式问题: 多了个 ”\“"{\"obj_id\": \"shzc_test_01\", \"img_url\": \"http://aa.bb.com/businessImages/imageFile/a7rMTLYrqIg/shzc_test_01/2020-05-11/shzc_test_01_1589190347333.jpg\"}"二:问题解决1.先用alibaba的fastdfs的 JSON.parse(msg) 进行格式化格式化会自动去除 “\”{"img_u原创 2020-05-20 15:57:09 · 4752 阅读 · 0 评论