简体   繁体   中英

how to efficiently build angular and spring boot app

I am trying to build a spring boot/angular app. I want to run it locally while building the front end login/logout flow. So I have angular running on 4200 and spring boot running on 8080. The problem is that when I login from angluar the re-direct url etc points back to 8080. Is there a simple way that I can run spring boot and angular on the same port and have the front refresh everytime I make a change to a file like what is happening now with "ng serve"

No.

You cannot use the same port for two different processes in any circumstances. You should best change the redirect address as Henry recommended.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM