文章目录
跨域访问问题
Failed to load resource: net::ERR_CONNECTION_REFUSED
Access toXMLHttpRequest at ‘http://localhost:8080/user/login’ from origin
‘http://localhost:9999’ has been blocked by CORS policy: No
‘Access-Control-Allow-Origin’ header is present on the requested
resource.
swagger突然跳转登录页面
注释后运行成功
报错:Skipping MapperFactoryBean with name ‘userMapper’ and ‘cn.mbz.parkingsystem.mapper.UserMapper’ mapperInterface. Bean already defined with the same name!
No MyBatis mapper was found in ‘[xx.mapper]‘ package. Please check your configuration.
在启动主文件里面把@MapperScan(“com.tony.ssmmd.mapper”)注释掉就可以了,只保留配置文件com.xxx.xxx.config.MyBatiesPlusConfiguration里面的@MapperScan(“com.xxx.xxx.mapper”)
其实两个保留一个就可以了
用户列表加载不出来Request failed with status code 500
后端报错
ERROR 18400 — [nio-8080-exec-6] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/147392.html