공공 API를 쓰는데, 흠 자꾸 url이 안넘어가더라!
Request processing failed; nested exception is org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:973) org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:852) javax.servlet.http.HttpServlet.service(HttpServlet.java:622) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837) javax.servlet.http.HttpServlet.service(HttpServlet.java:729) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
아니 같은 url을 주소창에 썼을 땐 잘 받아오는데, 컨트롤러 통해서 가면 안되길래 이것저것 넣어보니까
한글이 문제였다.
일반 인코딩 처리로는 안되고 Urlencoding 을 했어야 했다
한글 자리에 URLEncoder.encode("한글","UTF-8")이걸 대신 넣으면 아마 될 것이다!