diff --git a/src/main/java/kusitms/server/domain/cafe/entity/Cafe.java b/src/main/java/kusitms/server/domain/cafe/entity/Cafe.java index 380c4cd..8c66a88 100644 --- a/src/main/java/kusitms/server/domain/cafe/entity/Cafe.java +++ b/src/main/java/kusitms/server/domain/cafe/entity/Cafe.java @@ -23,10 +23,10 @@ public class Cafe { private String cafeName; @Column(name="latitude") - private Long latitude; + private Double latitude; @Column(name="longitude") - private Long longitude; + private Double longitude; @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "user_id") diff --git a/src/main/java/kusitms/server/domain/global/WebConfig.java b/src/main/java/kusitms/server/domain/global/WebConfig.java index 9af8a2d..e9ede15 100644 --- a/src/main/java/kusitms/server/domain/global/WebConfig.java +++ b/src/main/java/kusitms/server/domain/global/WebConfig.java @@ -11,11 +11,11 @@ public class WebConfig implements WebMvcConfigurer { public void addCorsMappings(CorsRegistry registry) { registry.addMapping("/**") // .allowedOriginPatterns("https://kusitms.shop/swagger-ui/**") - .allowedOrigins("http://localhost:5173", "https://kusitms.shop") + .allowedOrigins("http://localhost:5173", "https://kusitms.shop", "https://tumbly.vercel.app") .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS") .allowCredentials(true) .allowedHeaders("*") .maxAge(3000); } -} \ No newline at end of file +}