diff --git a/src/main/java/LlikelionKNU/KNUfest/domain/booth/service/BoothServiceImpl.java b/src/main/java/LlikelionKNU/KNUfest/domain/booth/service/BoothServiceImpl.java index 7eaa25c..18989ff 100644 --- a/src/main/java/LlikelionKNU/KNUfest/domain/booth/service/BoothServiceImpl.java +++ b/src/main/java/LlikelionKNU/KNUfest/domain/booth/service/BoothServiceImpl.java @@ -21,6 +21,7 @@ import java.util.Optional; @Service +@Transactional @RequiredArgsConstructor public class BoothServiceImpl implements BoothService{ diff --git a/src/main/java/LlikelionKNU/KNUfest/domain/comment/service/CommentServiceImpl.java b/src/main/java/LlikelionKNU/KNUfest/domain/comment/service/CommentServiceImpl.java index 4a96439..302e4aa 100644 --- a/src/main/java/LlikelionKNU/KNUfest/domain/comment/service/CommentServiceImpl.java +++ b/src/main/java/LlikelionKNU/KNUfest/domain/comment/service/CommentServiceImpl.java @@ -19,6 +19,7 @@ import java.util.Optional; @Service +@Transactional @RequiredArgsConstructor public class CommentServiceImpl implements CommentService{ private final CommentRepository commentRepository; diff --git a/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserCountServiceImpl.java b/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserCountServiceImpl.java index 7573996..b33673f 100644 --- a/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserCountServiceImpl.java +++ b/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserCountServiceImpl.java @@ -10,6 +10,7 @@ import java.util.Optional; @Service +@Transactional @RequiredArgsConstructor public class UserCountServiceImpl implements UserCountService { private final UserCountRepository userCountRepository; diff --git a/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserServiceImpl.java b/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserServiceImpl.java index 6c6d832..2d18d21 100644 --- a/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserServiceImpl.java +++ b/src/main/java/LlikelionKNU/KNUfest/domain/user/service/UserServiceImpl.java @@ -12,6 +12,7 @@ import java.util.Optional; @Service +@Transactional @RequiredArgsConstructor public class UserServiceImpl implements UserService{ private final UserRepository userRepository; diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f85324e..c35c147 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,8 +1,8 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/knufest?serverTimezone=Asia/Seoul - username: root + url: jdbc:mysql://mysql-withvol:3306/knufest?serverTimezone=Asia/Seoul + username: user password: 1234 jpa: