Current location - Recipe Complete Network - Catering training - springboot front-end and back-end separation of cross-domain program ProxyServlet configuration
springboot front-end and back-end separation of cross-domain program ProxyServlet configuration
For the front-end and back-end separation scenario of a cross-domain program, if you do not use such as nginx or springboot zuul gateway and other programs, you can use httpproxy program.

Configuration notes:

servlet_url : the matching path to the external access, such as the front-end js in the web service to access the back-end service of an interface, you can not add the domain name or ip port;

target_url : point to the back-end service of the root service address.

For more, follow:

springboot technical practice summary