摘要: 对代码进行加redis分布式锁 public String addRedisCache(String catalogJSON,ValueOperations<String, String> operations){ if (StringUtils.isEmpty(catalogJSON)){ Str 阅读全文
posted @ 2022-02-12 15:13 金玉良猿 阅读(1007) 评论(0) 推荐(0)
摘要: 环境准备:在docker容器中安装好nginx 反向代理: 1、本地配置hosts,虚拟机IP地址和域名 192.168.56.10 gulimall.com 2、配置nginx,文件路径/mydata/nginx/conf/conf.d/gulimall.conf(我是自己做了文件映射) cp d 阅读全文
posted @ 2022-02-07 10:22 金玉良猿 阅读(58) 评论(0) 推荐(0)
摘要: 前提:安装elasticsearch,命令: docker run --name elasticsearch -p 9200:9200 -p 9300:9300 \ -e "discovery.type=single-node" \ -v ES_JAVA_OPTS="-Xms64m -Xmx512m 阅读全文
posted @ 2022-02-02 13:53 金玉良猿 阅读(262) 评论(0) 推荐(0)
摘要: 1、@TableField(exist = false) 在Entity类中,若表结构没有对应字段,添加这个注解。 2、@TableLogic(value=" ",delval=" ") 逻辑删除,在需要逻辑删除字段Bean上,添加这个注解。 value:逻辑不删除 delval:逻辑删除 3、@C 阅读全文
posted @ 2021-11-28 14:10 金玉良猿 阅读(24) 评论(0) 推荐(0)
摘要: 问题提示: Found multiple occurrences of org.json.JSONObject on the class path: jar:file:/D:/document/maven/repository/org/json/json/20170516/json-20170516 阅读全文
posted @ 2021-06-27 16:10 金玉良猿 阅读(608) 评论(0) 推荐(0)
摘要: 问题描述: 在springboot的项目中整合gateway时运行出错。控制台提示: An attempt was made to call a method that does not exist. The attempt was made from the following location: 阅读全文
posted @ 2021-06-19 18:01 金玉良猿 阅读(180) 评论(0) 推荐(0)
摘要: 问题描述:cannot resolve property ‘id’ Inspection info : Under Construction 解决办法:关闭插件mybatisX 阅读全文
posted @ 2021-05-14 15:19 金玉良猿 阅读(936) 评论(0) 推荐(0)
摘要: 问题描述:创建项目后pom文件一直indexing...,控制台下面一直在下载的状态,可下又下不了,后面出现Can‘t download sh shfmt formatter. Please install it manually 解决在setting->Editor->Code Style->Sh 阅读全文
posted @ 2021-05-01 13:50 金玉良猿 阅读(1424) 评论(0) 推荐(0)
摘要: 错误提示: org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.feng.commonutils.R com.feng.edu 阅读全文
posted @ 2021-03-17 10:20 金玉良猿 阅读(275) 评论(0) 推荐(0)
摘要: 浏览器控制台提示: Access to XMLHttpRequest at 'http://localhost:8001/eduservice/teacher/pageTeacherCondition/3' from origin 'http://localhost:9528' has been b 阅读全文
posted @ 2021-02-24 20:46 金玉良猿 阅读(337) 评论(0) 推荐(0)