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
前端报错: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 presentlog4j: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.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 &