330 Star 1.6K Fork 741

soler / open-cloud

 / 详情

访问http://localhost:8888/doc.html,调用/admin/login/token报错:Required String parameter 'username' is not present

待办的
创建于  
2019-08-14 17:22

按照项目README.MD中快速开始,执行到第5步,访问 http://localhost:8888,调用“登录获取用户访问令牌”接口时报错:

2019-08-14 17:14:22.753 [XNIO-1 task-18] ERROR c.o.common.exception.OpenGlobalExceptionHandler - ==> error:ResultBody{code=4000, message='无效的请求!', path='/login/token', data=null, httpStatus=400, extra=null, timestamp=1565774062749} exception: {}
org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'username' is not present
at org.springframework.web.method.annotation.RequestParamMethodArgumentResolver.handleMissingValue(RequestParamMethodArgumentResolver.java:202)
at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:113)
at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:126)
at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:166)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1038)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:908)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at com.opencloud.common.filter.XssFilter.doFilter(XssFilter.java:22)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)

评论 (0)

Shiyunlai 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
1048062 shiyunlai 1578939091
Java
1
https://gitee.com/liuyadu/open-cloud.git
git@gitee.com:liuyadu/open-cloud.git
liuyadu
open-cloud
open-cloud

搜索帮助

161121 f78d6d6f 1850385 154831 86f8c370 1850385