-
Resolved exception caused by handler execution: org.springframework.http.converter.HttpMessageNotWritableException: No converter found for return value of type: class cn.argonavis.labeltool.bean.ResponseBean
将return的类添加getter/setter;
-
前端报错:POST http://127.0.0.1:8080/upload/img net::ERR_CONNECTION_RESET 且后端报错:2018-09-21 10:57:29.469 WARN 7076 --- [nio-8080-exec-4] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'userId' is not present
2018-09-21 10:57:30.442 WARN 7076 --- [nio-8080-exec-5] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'userId' is not present
2018-09-21 10:57:31.446 WARN 7076 --- [io-8080-exec-14] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved exception caused by handler execution: org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'userId' is not present这个的意思应该是数据量太大,spring boot自动拦截了,所以会不停的发好几次,导致后端报好几个这个问题;解决方法:
配置文件里添加:server.tomcat.max-http-post-size=50000000 -
log4j:WARN No appenders could be found for logger (cn.argonavis.labeltool.util.HttpRequestUtils).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.在主类的main函数中添加 BasicConfigurator.configure();即可;
-
java.io.IOException: Stream closed
将
fw.close();
bw.close();
改成bw.close();
fw.close();
运行war:nohup java -jar spring-boot-1.0-SNAPSHOT.jar > log.file 2>&1 &
相关文章
- Spring Boot访问index.html踩坑纪
- 「踩坑记」Android API 判断权限申请结果的闪退问题
- Spring Boot整合Spring Data Elasticsearch 踩坑
- spring boot整合reids 然后实现缓存分页(方法之一) 以及RedisTemplate存到reids 里面get 就消失的坑
- spring jdbc踩坑日记,new JdbcTemplate 为null导致UserDao一直为null
- Linux下安装nacos踩坑记
- Spring Boot进程被异常终止-记一次挖矿木马处理
- android studio踩坑记 AVD模拟器代理设置
- 踩坑记 在STM32上移植emWin和RTOS,进HardFault_Handler
- 移动猫路由一体机GM220-S桥接TP-LINK路由器踩坑记(win10)