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
'Spring (boot) 오류 해결' 카테고리의 다른 글
Servlet.service() for servlet [jsp] threw exception//주석을 달려고 choose태그 간격을 띄웠더니 에러가 떴다. (0) | 2022.02.17 |
---|---|
Invalid character found in the request target [/category?c={ ]. The valid characters are defined in RFC 7230 and RFC 3986 (0) | 2022.02.16 |
[JAVA,JSP,SPRING] 현재 페이지의 url 주소 가져오기 (0) | 2022.02.14 |
$ajax 공부 (url 주소 보낼땐 시큐리티 조심!//$ajax 통신법은 숙지!) (0) | 2022.02.13 |
Lombok과 Json getter명명 규칙 (0) | 2022.02.12 |
댓글