bug
只是学习学习
以Java和Python爬虫为主,自己用GitPages+Hexo搭建的博客https://fengzxia.gitee.io/新博客优先在此更新
展开
-
使用JWT时Header中token命名的坑
jwt获取不到请求头中的token,jwt+shiro获取不到请求头中的token原因原创 2020-08-12 19:51:27 · 4333 阅读 · 0 评论 -
IDEA项目启动崩溃,控制台没有错误信息问题
org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file but failed to unregister it when the web application was stopped. To prevent a memory leak, the原创 2020-01-06 20:13:51 · 2167 阅读 · 0 评论 -
网页中添加了其他网站上的图片链接,这个图片设置了防盗链的图片后,访问报403解决办法
网页中添加了其他网站上的图片链接,这个图片设置了防盗链的图片后,访问报403解决办法原创 2019-08-26 16:29:15 · 1894 阅读 · 0 评论 -
spring validation校验对象多个字段返回的消息内容顺序随机问题
spring validation校验对象多个字段返回的消息内容顺序随机问题原创 2019-07-20 14:43:37 · 4101 阅读 · 1 评论 -
在使用Java的序列化和反序列化时碰到的问题
类修改了字段,在反序列化的时候会直接报异常:InvalidCastException转载 2019-07-08 19:18:55 · 964 阅读 · 0 评论 -
springboot+logback进行日志输出时报current ElementPath is [[configuration][root][springProfile]]错误
Logback configuration error detected: ERROR in ch.qos.logback.core.joran.spi.Interpreter@118:32 - no applicable action for [springProfile], current ElementPath is [[configuration][root][springProfile]]原创 2019-06-10 09:41:01 · 8476 阅读 · 2 评论 -
使用LocalDate进行时间类型格式转换的时候报UnsupportedTemporalTypeException: Unsupported field: HourOfDay错误
java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: HourOfDay at java.time.LocalDate.get0(LocalDate.java:680) at java.time.LocalDate.getLong(LocalDate.java:659)转载 2019-06-06 11:28:10 · 18705 阅读 · 1 评论 -
spring-jpa通过自定义sql执行修改碰到的问题
org.hibernate.hql.internal.QueryExecutionRequestException: Not supported for DML operationsExecuting an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query原创 2019-05-22 15:54:49 · 2178 阅读 · 0 评论 -
jpa执行插入报error performing isolated work错误
org.springframework.dao.InvalidDataAccessResourceUsageException: error performing isolated work; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: error performing isolated work转载 2019-05-21 20:46:06 · 1489 阅读 · 0 评论 -
在安装python第三方库lxml时报Could not install packages due to an EnvironmentError错误
在安装python第三方库lxml时报错,信息如下Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/b8/5a/...原创 2019-05-11 14:09:15 · 1670 阅读 · 0 评论 -
解决java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use错误
java.lang.IllegalStateException: Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test转载 2019-04-11 09:41:54 · 1840 阅读 · 1 评论 -
springboot项目中使用redis对数据进行解析报Invalid numeric value: Leading zeroes not allowed错误
错误分析在使用redis获取发送的短信验证码,偶尔会报如下错误信息2019-01-15 10:32:15.104 [http-nio-8080-exec-10] WARN org.springframework.web.servlet.PageNotFound:1176 - No mapping found f lowed at [Source: [B@2836aebe; line: 1,...原创 2019-03-23 13:54:54 · 6290 阅读 · 1 评论 -
360浏览器兼容模式下ajax请求第二次访问,不会请求接口问题
在360浏览器兼容模式下,页面通过ajax方式请求一个接口时,会将返回的结果给缓存,当第二次去请求的时候不会调用后台的接口,这就导致了当我第一次访问过此接口后返回true,当我将结果修改为false是,返回的仍是true而不是false原创 2019-04-04 17:23:36 · 1793 阅读 · 0 评论 -
在img标签中没有写图片url但拼接了oss链接,导致接口被请求多次的bug
文章目录bug原因解决办法bug原因在编写浏览记录拦截器的时候,debug发现拦截器总是执行多次,而且第二次总是没有获取到产品id参数,起初以为是项目配置的原因导致拦截器初始化了多次,但检查配置没有,debug检查两次请求拦截器的内存地址都是一样的,所以不是因为配置的原因导致的后来在controller层断点才发现是因为接口被多次请求,然后猜测可能是页面上有哪些地方重复调用品牌详情接口了,通过...原创 2019-04-04 15:47:52 · 1316 阅读 · 0 评论 -
SpringBoot项目中访问controller接口报Creation of SecureRandom instance for session ID generation using
bug原因今天测试人员在测试的时候发现获取图形验证码接口在访问时候加载速度非常慢,要一两分钟才能加载出来,看日志的时候发现报了下边的一段警告日志:2019-01-24 09:36:33.654 [http-nio-8080-exec-5] WARN org.apache.catalina.util.SessionIdGeneratorBase:180 - Creation of SecureR...原创 2019-03-23 14:40:39 · 2483 阅读 · 0 评论