【发布时间】:2020-07-15 20:07:16
【问题描述】:
假设我有一个域“example.com”。现在,使用 caddy,我已将 example.com 配置为在 localhost 8080 上运行的 springboot 应用程序的代理。如何正确转到应用程序内的其他路由?例如,如果我转到https://example.com/user,则 url 将是:example.com/user。但是如果我从 springboot 应用程序中从那里路由到 /login (可以说在控制器中的用户路由末尾使用 return new RedirectView("/login") ),它会将我重定向到 http:serverIpAdress:8080 /登录。我怎样才能让它路由到https://example.com/login?
【问题讨论】:
标签: java spring-boot model-view-controller thymeleaf caddy