From a26af1e9632f9b94cbc8204c63262bc0cdfdc33d Mon Sep 17 00:00:00 2001 From: SHEOMM Date: Sat, 9 Mar 2024 00:23:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=9E=84=EC=8B=9C=20=EB=B0=B0=ED=8F=AC?= =?UTF-8?q?=EC=9A=A9=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../attendance/controller/AttendanceController.java | 2 ++ .../session/service/SessionServiceImpl.java | 1 - src/main/resources/application-temporary.yaml | 12 ++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/application-temporary.yaml diff --git a/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java b/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java index 0fcf8cd..acac04f 100644 --- a/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java +++ b/src/main/java/com/waruru/areyouhere/attendance/controller/AttendanceController.java @@ -34,6 +34,8 @@ public class AttendanceController { private final AttendanceService attendanceService; private final AttendeeService attendeeService; + + // FIXME 로직 문제. -> 출석 중복 체크. @PostMapping public ResponseEntity attend(@RequestBody AttendRequestDto attendRequestDto){ String attendeeName = attendRequestDto.getAttendeeName(); diff --git a/src/main/java/com/waruru/areyouhere/session/service/SessionServiceImpl.java b/src/main/java/com/waruru/areyouhere/session/service/SessionServiceImpl.java index 4ed01a2..8d3a743 100644 --- a/src/main/java/com/waruru/areyouhere/session/service/SessionServiceImpl.java +++ b/src/main/java/com/waruru/areyouhere/session/service/SessionServiceImpl.java @@ -91,7 +91,6 @@ public CurrentSessionDto getCurrentSessionInfo(Long courseId){ .build(); } - // TODO : 리팩토링 필수 말도 안됨. activate 확인은 RDB에 가는 게 아니라 redis에 해당 sessionId가 있는지만 확인하면 된다. @Transactional(readOnly = true) @Override public List getRecentFiveSessions(Long courseId){ diff --git a/src/main/resources/application-temporary.yaml b/src/main/resources/application-temporary.yaml new file mode 100644 index 0000000..0aa6f2c --- /dev/null +++ b/src/main/resources/application-temporary.yaml @@ -0,0 +1,12 @@ +spring.config.activate.on-profile: prod + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/areyouhere?createDatabaseIfNotExist=true&useSSL=false&serverTimezone=Asia/Seoul&CharacterEncoding=UTF-8 + username: root + password: + data: + redis: + host: localhost + port: 6379 \ No newline at end of file