java.io.UnsupportedEncodingException

java.io.UnsupportedEncodingException

启动项目抛错:

java.io.UnsupportedEncodingException: 1

  at java.lang.StringCoding.decode(StringCoding.java:190)
  at java.lang.String.(String.java:426)
  at java.net.URLDecoder.decode(URLDecoder.java:190)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
  at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
  at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:743)
  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:672)
  at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:82)
  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:919)
  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:851)
  at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
  at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:855)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
  at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

 

定位到报错代码查看了一下 UTF-8写错了 ?

posted on 2018-07-25 17:22 【cosmo】 阅读( ...) 评论( ...) 编辑 收藏

你可能感兴趣的:(java.io.UnsupportedEncodingException)