본문 바로가기
목차
Spring (boot) 오류 해결

"data": "For input string: \"/\""

by 지각생 2022. 2. 16.
728x90

에러 원인

			<if test="uri =='/category' and uri =='/'">
				channelName like '%%'
			</if>

			<if test="uri !='/category' or uri !='/'">
				channelName = #{channelName}
			</if>

정확히는 uri =='/' 이 에러를 유발했는데

 

url의 루트의 표현이 왜인지는 모르겠지만 favicon.ico으로 해야하는거 같다.

 

http://localhost:8080/

== http://localhost:8080/favicon.ico


해결

			<if test="uri =='/category' and uri =='/favicon.ico'">
				channelName like '%%'
			</if>

			<if test="uri !='/category' or uri !='/favicon.ico'">
				channelName = #{channelName}
			</if>

 

"/" ==> "/favicon.ico" 으로 변경

 


에러 메세지

 

 

{

"status": 500,
"data": "For input string: \"/\""
}

 

 
728x90

댓글