위 링크의 정보를 참고해서 리턴 class에 @JsonInclude(JsonInclude.Include.NON_NULL) 를 추가하고 해결됐다.
에러 메시지를 메모해 두기 위해 다시 소스를 원상복구 후 실행 했을때는 에러가 나지는 않았다. ㅡㅡ?? 응??
현재는 위 내용을 제거하고 실행하고 있지만 에러가 없는 상태.
4. 파일을 전송하기 위한 ajax에서 발생
에러 : java.lang.IllegalStateException: Current request is not of type [org.springframework.web.multipart.MultipartHttpServletRequest]: ServletWebRequest: uri=/bbs/ajax/insert;client=0:0:0:0:0:0:0:1;session=01C5D81F89E59ACA7C2BEE397A35A677
ajax 호출을 받는 controller에서 MultipartHttpServletRequest가 누락된 경우 발생한다.
org.thymeleaf.exceptions.TemplateProcessingException:Onlyvariable expressions returning numbersorbooleans are allowedinthiscontext,any other datatypes arenottrustedinthe context ofthisexpression,includingStringsorany otherobjectthat could be renderedasa text literal.A typicalcaseisHTML attributesforeventhandlers(e.g."onload"),inwhich textual datafromvariables should better be output to"data-*"attributesandthenreadfromtheeventhandler.