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

前端代码为什么跑不起来? #2

Open
BrycesWang opened this issue Jul 4, 2021 · 3 comments
Open

前端代码为什么跑不起来? #2

BrycesWang opened this issue Jul 4, 2021 · 3 comments

Comments

@BrycesWang
Copy link

请问为什么前端代码配置了tomcat跑起来404,前端跑起来后怎么和服务器的后端相连

@nl8590687
Copy link
Owner

前端代码为什么要配置tomcat,网站前端和网站后端一起的啊,本来就是调试好的,你要做的只是跟ASRT的API服务端连接,在同一台机器上直接部署启动就行

@BrycesWang
Copy link
Author

前端代码为什么要配置tomcat,网站前端和网站后端一起的啊,本来就是调试好的,你要做的只是跟ASRT的API服务端连接,在同一台机器上直接部署启动就行

嗯嗯,当时没注意,现在已经弄好了。现在我的api服务端在服务器上,前后端在自己电脑上,发送请求一直抛出连接被拒绝的请求,请问这个怎么办呀?

@nl8590687
Copy link
Owner

nl8590687 commented Jul 7, 2021

嗯嗯,当时没注意,现在已经弄好了。现在我的api服务端在服务器上,前后端在自己电脑上,发送请求一直抛出连接被拒绝的请求,请问这个怎么办呀?

为什么要这么搞?你服务器能主动连上你的电脑吗?你先搞清楚网络问题

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

2 participants