• 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 &

最新文章

  1. 后缀树(suffix tree)
  2. sql查询语句如何解析成分页查询?
  3. Python自动化 【第十七篇】:jQuery介绍
  4. linux 系统服务
  5. Android学习笔记之AndroidManifest.xml文件解析(转)
  6. XH
  7. net 的单元测试 初学
  8. Oracle数据库入门——物化视图日志结构
  9. MySQL存储引擎,优化,事务
  10. Curl命令使用方法
  11. vue.js中的全局组件和局部组件
  12. JAVA进阶6
  13. 双重ScrollView,RecyclerView联动实例
  14. 1.7Oob 静态成员
  15. 源码安装git工具,显示/usr/local/lib64/libcrypto.a(dso_dlfcn.o) undefined reference to `dlopen'
  16. Android——shape和selector和layer-list的(详细说明 转)
  17. Electron与WEB桌面应用程序开发及其它
  18. Linux常用shell脚本
  19. js中以键值对的形式当枚举
  20. python编程规范系列--建议08~18

热门文章

  1. #单元测试#以karma+mocha+chai 为测试框架的Vue webpack项目(一)
  2. ubuntu怎么关防火墙
  3. win7 64位 安装java jdk1.8 ,修改配置环境变量
  4. Python 操作Redis 转载篇
  5. Jmeter入门12 __time函数 jmeter获取当前系统时间
  6. c++下各种编码格式转换的方法
  7. 「bzoj3956: Count」
  8. 7.29NOIP模拟赛
  9. 【luogu P3950 部落冲突】 题解
  10. java基础知识一览(二)