Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

前端适配自定义路径 #45

Open
2771428814 opened this issue Nov 29, 2023 · 0 comments
Open

前端适配自定义路径 #45

2771428814 opened this issue Nov 29, 2023 · 0 comments

Comments

@2771428814
Copy link

2771428814 commented Nov 29, 2023

目前的项目启动后直接访问网址是 127.0.0.1:9091,如果想 127.0.0.1:9091/xxxx进行访问,在application.yml中配置server.context-path: /xxxx后端可以适配,但是前端因为资源都是以/开头的,导致前端资源请求都是404。
希望大佬考虑一下在不开源前端的情况下,在打包后的前端文件中添加一个配置文件来设置静态资源文件的地址。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant