
issues record
岁月变迁呀
往事如风随风散
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
nginx配置前缀后前端404问题解决
配置1、publicPath: “./”2、nginx配置/aaa前缀location /aaa { root /opt/zhjg/page; index index.html;} /op原创 2022-01-04 21:26:36 · 2335 阅读 · 0 评论 -
app内嵌h5缓存导致更新不及时问题
解决: location / { root /home/ywtg/page/h5/dist; index index.html index.htm; add_header Cache-Control "no-store,max-age=0";}原创 2021-12-20 19:55:24 · 2149 阅读 · 0 评论 -
MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.Runtime
1、错误日志org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.RuntimeException: java.nio.file.NoSuchFileException: /tmp/undertow.8081.6091954911906268442/undertow2435234810596519507upl原创 2021-11-08 23:05:14 · 5698 阅读 · 0 评论 -
springkafka集成后给kafka集群发送失败(cluster authorization failed)
1、kafka集群使用的是SASL/SCRAM-SHA-256认证sasl-mechanism: SCRAM-SHA-256security-protocol: SASL_PLAINTEXTsasl-jaas-config: org.apache.kafka.common.security.scram.ScramLoginModule required username="admin" password="Wisebrain@20210621";解决方案:https://stackoverflo原创 2021-09-16 21:51:03 · 3282 阅读 · 0 评论 -
转载:kafka通过外网映射无法访问
百度结果:https://www.orchome.com/1903https://www.pianshen.com/article/81081973468/https://segmentfault.com/a/1190000020715650原创 2021-06-22 22:21:01 · 725 阅读 · 4 评论 -
Fastdfs上传文件报错:java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.closeQuietly
异常信息:2020-12-21 11:25:59.089[gayway_db5043d8e8274c1da7e0d18c8aad86df][][][http-nio-8764-exec-3]ERROR - com.github.tobato.fastdfs.domain.conn.FdfsConnectionManager - execute fdfs command errorcom.github.tobato.fastdfs.exception.FdfsServe原创 2020-12-22 09:41:50 · 2194 阅读 · 0 评论 -
SpringBoot整合Redis报错:Error creating bean with name ‘redisTemplate‘...NoClassDefFoundError
报错信息:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'redisTemplate' ... Unsatisfied dependency expressed through method 'redisTemplate' parameter 0;nested exception is org.springframework.beans.factory.B原创 2020-12-02 23:23:49 · 6636 阅读 · 0 评论 -
整合elasticsearch-rest-high-level-client报错nested exception is java.lang.NoSuchFieldError:IGNORE_DEPREC
报错信息:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'restHighLevelClient' defined in class path resource [com/whf/search/config/ElasticSearchConfig.class]: Bean instantiation via factory method failed; nested exce原创 2020-11-28 17:20:06 · 5647 阅读 · 5 评论 -
SpringBoot测试报错:java.lang.IllegalStateException Unable to find a @SpringBootConfiguration
跑Spring Boot测试时,一开始源码包路径为com.whf.product,而测试包路径为com.whf,导致跑测试类时提示找不到配置类,一开始也没想到会有这种问题,参考下面的博客,将两者改成一致即可。记录一下。。。参考博客:https://www.cnblogs.com/xing-nb/p/12147304.html...原创 2020-11-01 22:16:43 · 308 阅读 · 0 评论 -
@JsonField失效记录
使用restTemplate发送请求:ResponseEntity<AccessToken> responseEntity = restTemplate.getForEntity(...);返参格式:{"access_token":"fbc5dad66fd297ed954fbe5aaa24b63dd7bb0390","expires_in":"86400","errcode":"0","errmsg":"获取token成功"}当使用返回的json属性和实体类名称不一致时,.原创 2020-09-14 13:06:50 · 1343 阅读 · 0 评论 -
mysql入库时间不正确排查思路
排查解决思路:1. mysql配置时区2.系统时间和时区date 查看系统时间ll /etc/localtime 查看时区信息3. 使用json注解标记时区原创 2020-09-01 17:51:30 · 394 阅读 · 0 评论 -
SQL报错java.sql.SQLSyntaxErrorException:incompatible with sql_mode=only_full_group_by
Cause: java.sql.SQLSyntaxErrorException: Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'aep_nanshan.p.product_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mo原创 2020-06-03 13:17:22 · 730 阅读 · 0 评论 -
nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping:
原因是使用idea快捷键时,添加的注释为/**/,注释里面我写了另外一条SQL,但是mybatis执行时仍然把里面的#{id}执行了,导致报错,参数异常,需要参数两个,实际传参才只有一个。上图:...原创 2020-01-08 18:20:48 · 22471 阅读 · 8 评论 -
mybatis错误: Mapped Statements collection already contains value for...
出现这个问题的原因是我的mapper.xml文件有个方法名为select,跟配置文件<select></select>冲突,改个方法名即可。原创 2020-01-08 14:46:43 · 808 阅读 · 0 评论 -
Spring Cloud集成Swagger2报空指针异常
Spring Cloud项目使用maven导入的swagger依赖版本为2.2.2,使用feign来调用其他服务。但是启动时报空指针异常,异常路径是在swagger路径,而且feignClient找不到实例。后面将swagger的版本改为2.7.0后启动成功,并且访问http://localhost:port/swagger-ui.html成功访问到api文档。具体问题尚未清楚,记录一下。...原创 2020-01-02 17:46:18 · 1825 阅读 · 0 评论 -
Spring Boot项目启动失败(使用了lombok),报错:Error:java: java.lang.ExceptionInInitializerError
从gitlab拉下来的项目,导入idea,忘了设置设置project structure的jdk,默认是jdk11,,,,然后lombok插件版本不支持jdk11,所以才会报这个错误,后面直接更改项目的jdk8即可。...原创 2019-12-30 17:00:15 · 1987 阅读 · 0 评论 -
MyBatis报错:BindingException:Invalid bound statement (not found)
今天搭了一个Spring Boot项目使用到MyBatis,启动项目访问时,报错:BindingException:Invalid bound statement (not found): ...后来检查了下,发现原来是mybatis找不到mapper.xml文件,mapperlocations配置的路径错了,最后修改了mapperlocations,改为正确的路径,最后...原创 2019-12-19 00:20:52 · 231 阅读 · 0 评论 -
maven 3.6.2版本报错:Unable to import maven project
新买的笔记本,安装了maven最新版本3.6.2,IDEA版本为2019.2,在写入新依赖的时候,报错:查了下很多人说是新版本的问题,重新安装了3.5.4版本就搞定了。贴一下报错日志:2019-11-14 01:32:18,182 [2887281] ERROR - #org.jetbrains.idea.maven - com.google.inject.Cr...原创 2019-11-14 02:25:34 · 525 阅读 · 0 评论