Closed Simbafa closed 2 years ago
server.servlet.context-path 仅能控制后端访问接口前缀,页面需要根据实际情况选择性修改前端配置重新打包,若仅需要修改页面访问前缀建议通过其他方式解决 例如:前后端分离部署仅修改前端请求接口前缀与后端一致;整体部署(默认方式)参考以下配置重新打包部署 前端配置(参考):
<BrowserRouter basename={"/datart"}>
publicPath: '/datart/',
export const BASE_API_URL = '/datart/api/v1';
Datart Version 1.0.0-beta.2
To Reproduce 修改:config/datart.config, 增加了 server.servlet.context-path=/springdemo 访问:http://host:8080/springdemo 抛出异常:java.lang.StackOverflowError
Expected behavior 访问的路径上,增加context-path
Screenshots If applicable, add screenshots to help explain your problem.
Environmental details: (optional, depending on where the bug occurs)
Additional context