refactor(biji-houdaun): 调整端口并优化健康检查和跨域配置- 将应用端口从8083 改为8084

- 更新健康检查 URL 以匹配新端口
- 在 pom.xml 中指定镜像名称
- 修改跨域配置,使用 allowedOriginPatterns 允许所有来源
This commit is contained in:
ikmkj
2025-08-02 17:18:47 +08:00
parent 4b2e40f896
commit 15ad949da6
3 changed files with 5 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:5173") // 明确指定前端来源
.allowedOriginPatterns("*") // 使用allowedOriginPatterns
.allowedMethods("*")
.allowedHeaders("*")
.allowCredentials(true) // 允许凭证