TommyLemon/APIAuto

前端页面请求404

hxdwd opened this issue · 2 comments

hxdwd commented

把项目下了下来,后端启动的是springboot demo项目,前端页面的数据库配置也改了,为啥请求错误
看路径请求的是/delegate,没有这个接口所以报错404
image

下面是通过idea请求,是正常的
image

只有 APIJSONBoot 系列的 Demo 中 DemoController 才实现了 /delegate 代理接口
https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server

代理服务器没这个接口就不要开启 托管服务器代理。

建议直接用 APIJSONBoot-MultiDataSource,这个项目在 static 目录内置了 APIAuto 源码,直接避免了前端 CORS 跨域问题
https://github.com/APIJSON/APIJSON-Demo/tree/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource

hxdwd commented

已解决,感谢