
服务端/框架/常见问题
97年的典藏版
这个作者很懒,什么都没留下…
展开
-
ibatis错误Error instantiating class xx with invalid types() or values()
原因是查询的那个实体类没有无参构造函数原创 2021-01-05 17:27:19 · 423 阅读 · 0 评论 -
springboot Too many open files错误 打开文件数一直增加,已解决
问题描述:前端框架VUE,请求插件axios,后端框架springboot。操作:在页面中请求springboot的controller接口,在centos7中使用lsof -p 1605 | wc -l命令查询打开文件数每请求一次,查询打开文件数的结果就会多出48个文件,一直到4000多的时候,就会报tomcat Too many open files异常,而且打开文件数只会上升不会下降,本人觉得原因应该是socket没关闭吧,但是代码看着没有任何问题,不知道有没有人遇到过这类的问题...原创 2020-05-14 19:07:52 · 6781 阅读 · 1 评论 -
“System.Windows.Markup.XamlParseException”类型的异常
“System.Windows.Markup.XamlParseException”类型的异常解决方法:xxx-》 图片属性-》生产操作改为 Resource。ImageSource 改为类似:ImageSource="/你的程序集名称;component/Resources/xxx.png";...原创 2019-09-27 11:02:37 · 11447 阅读 · 2 评论 -
MISCONF Redis is configured to save RDB snapshots
异常信息: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, because this instance is configured to rep...原创 2019-09-24 13:49:22 · 121 阅读 · 0 评论 -
BeanCreationNotAllowedException: Error creating bean with name 'sqlSessionFa
BeanCreationNotAllowedException: Error creating bean with name 'sqlSessionFaorg.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name ‘sqlSessionFatory’: Single...原创 2019-09-09 18:14:50 · 1870 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy异常解决办法
java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy异常解决办法今天使用eureka的时候发现一个异常,访问eureka页面出现一个f:看了下异常:是一个没见过的异常,然后发现这个异常是在eureka运行时把jar包替换掉之后出现的异常,重新启动eureka即可。...原创 2019-09-05 15:23:27 · 24894 阅读 · 1 评论 -
解决使用zuul的时候出现的跨域response多allow-origin值的问题
解决使用zuul的时候出现的跨域response多allow-origin值的问题解决跨域问题:@Configurationpublic class CorsConfig { @Bean public CorsFilter corsFilter(){ final UrlBasedCorsConfigurationSource source = new Url...原创 2019-03-25 10:51:33 · 2256 阅读 · 0 评论 -
使用HttpMessageConverters解决精度损失问题导致Feign不能通信
使用HttpMessageConverters解决精度损失问题导致Feign不能通信@Bean public HttpMessageConverters fastJsonHttpMessageConverters() { FastJsonHttpMessageConverter fastConverter = new FastJsonHttpMessageConverter(); Fa...原创 2019-03-27 20:03:43 · 4232 阅读 · 0 评论 -
java代码和java注释进行解耦
java代码和java注释进行解耦是的,你没听错,现在java代码和java注释都可以解耦了,示例如下:public int apple = 1; //苹果public int blueberry = 2; //蓝莓public int pear = 3; //梨只要将代码和注释分开写,并且将注释对齐,就可以实现代码和注...原创 2019-03-29 18:37:41 · 671 阅读 · 0 评论 -
spring boot 运行单元测试时,websocket报错
spring boot 运行单元测试时,websocket报错SpringBootTest增加webEnvironment 参数:package com.hengyun.admin; import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.boot.test.context.Sp...原创 2019-05-24 09:05:33 · 3411 阅读 · 0 评论 -
springboot项目将资源文件放resource还是出现404问题
springboot项目将资源文件放resource还是出现404问题首先说一下我的本地环境:idea + mvn + springboot + jsp网上搜各种方式,如增加包的作用域,增加、修改包,修改springboot版本,都没有解决问题,很坑的是根本不是代码问题,而是启动方式有问题:从这个地方启动或者使用mvn run:springboot都可以...原创 2019-05-24 09:35:23 · 1531 阅读 · 0 评论 -
Invalid character found in method name. HTTP method names must be tokens异常
Invalid character found in method name. HTTP method names must be tokens异常异常描述:java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens at org.a...原创 2019-07-12 18:07:06 · 2082 阅读 · 0 评论