如何使用nginx调用springboot项目

nginx 配置文件中
location /xxx001 {
proxy_pass http://localhost:8082/xxx;
}
后面是springboot项目中的请求

前端请求还是用nginx的端口号 加location中的拼接地址

你可能感兴趣的:(nginx,spring,boot,运维)