diff --git a/src/main/java/connectripbe/connectrip_be/auth/config/SecurityConfig.java b/src/main/java/connectripbe/connectrip_be/auth/config/SecurityConfig.java index 16c07357..3cdfc119 100644 --- a/src/main/java/connectripbe/connectrip_be/auth/config/SecurityConfig.java +++ b/src/main/java/connectripbe/connectrip_be/auth/config/SecurityConfig.java @@ -2,11 +2,10 @@ import static org.springframework.security.config.Customizer.withDefaults; - import connectripbe.connectrip_be.auth.jwt.JwtAccessDeniedHandler; import connectripbe.connectrip_be.auth.jwt.JwtAuthenticationEntryPoint; import connectripbe.connectrip_be.auth.jwt.JwtAuthenticationFilter; - +import java.util.Arrays; import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -22,8 +21,6 @@ import org.springframework.web.cors.CorsConfigurationSource; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; -import java.util.Arrays; - @Configuration @EnableWebSecurity @RequiredArgsConstructor @@ -59,8 +56,8 @@ public CorsConfigurationSource corsConfigurationSource() { CorsConfiguration configuration = new CorsConfiguration(); configuration.setAllowedOrigins(Arrays.asList( "http://localhost:3000", - "https://dev.connectrip.kro.kr", - "https://connectrip.kro.kr" + "https://dev.connectrip.travel/", + "https://connectrip.travel/" )); configuration.addAllowedMethod("*"); configuration.addAllowedHeader("*"); diff --git a/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java b/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java index c1c0d07b..900c05b8 100644 --- a/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java +++ b/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java @@ -9,6 +9,9 @@ import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.JoinColumn; + +import jakarta.persistence.Lob; + import jakarta.persistence.ManyToOne; import jakarta.persistence.Table; import java.time.LocalDateTime; @@ -49,6 +52,7 @@ public class AccompanyPostEntity extends BaseEntity { // fixme-noah: urlQrPath 임시 보류 private String urlQrPath; + @Lob @Column(nullable = false) private String content; @@ -75,5 +79,4 @@ public void updateAccompanyPost(String title, LocalDateTime startDate, LocalDate this.content = content; this.customUrl = customUrl; } - }