首页 > react-router采用browserHistory,eclipse服务器端应该怎样配置?

react-router采用browserHistory,eclipse服务器端应该怎样配置?

页面路径index.html位于localhost:8080/opinion/目录,
API接口路径位于localhost:8080/opinion/rest/...下。

应该怎样配置服务器使浏览器请求带有react-router路径的url(如:localhost:8080/opinion/about)时返回index.html,而且不影响API接口的调用。

【热门文章】
【热门文章】