场景: 1. 配置了Spring和SpringMvc, Spring管理非Controller类的Bean, SpringMvc管理涉及的Controller类 2. web.xml已经配置了Spring的监听器, SpringMvc的servlet映射 3. 包扫描配置正确 问题: 访问指定的API链接,发现返回404, 日志显示:"No mapping found for HTTP request with URI [/xxx.do] in DispatcherServlet with na
运行环境:windows+phpstorm+Nginx 第一步:添加 PHP Built-in Web Server 第二步:配置路径和端口(路径是你的laravel中的pubilc,端口是你没有占用的端) 第三步:运行一下 localhost:8001加上你的路由,就可以访问了 比如你的路由是test,那就是localhost:8001/test