Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
e72c534
[Fix]Test 코드 수정
hykim02 Mar 24, 2025
1dbbc56
[Fix]public 접근지정자 private으로 변경(캡슐화)
hykim02 Mar 26, 2025
b91f4a7
[Refactor]CafeteriaServiceV2 단일 책임 원칙 적용하여 클래스 분리
hykim02 Mar 27, 2025
f19aa3d
Update Java CI-CD.yml
hykim02 Mar 27, 2025
7f9a50e
merge conflict 해결
hykim02 Mar 27, 2025
0c7cd50
merge conflict 해결 중
hykim02 Mar 27, 2025
dd851d2
[Refactor]CampusServiceV2 클래스 분리
hykim02 Mar 27, 2025
c098a0c
merge conflict
hykim02 Mar 27, 2025
2a7290c
Merge branch 'main' of https://github.com/GNU-connect/Server-JavaSpring
hykim02 Mar 27, 2025
fbca9f3
[Refactor]DietServiceV2 서비스 클래스 분리
hykim02 Mar 27, 2025
4e67e9e
merge
hykim02 Apr 16, 2025
a4eb0a9
[fix]caheable 주석 처리 - 잠깐 보류
hykim02 Apr 17, 2025
e70e82b
[fix]Cafeteria Cacheable 주석처리
hykim02 Apr 17, 2025
9b7b803
Merge branch 'main' into main
hykim02 Apr 17, 2025
00f3532
[Refactor]캐시 적용 및 중복로직 최적화
hykim02 Apr 17, 2025
6f829d9
[Refactor]캐시 적용 및 중복 로직 최적화
hykim02 Apr 17, 2025
931b37c
Merge remote-tracking branch 'origin/main'
hykim02 Apr 17, 2025
cbd71ef
[fix]userService에서 발생한 hikariCP connection error 찾는 중
hykim02 Apr 21, 2025
bd75fde
Merge branch 'main' into main
hykim02 Apr 21, 2025
0165d50
[Test]HikariCP 멀티스레드 환경 테슽
hykim02 Apr 21, 2025
14c8c57
[Fix]conflict 해결
hykim02 Apr 21, 2025
f5d6eea
Merge branch 'GNU-connect:main' into main
hykim02 Apr 21, 2025
17ab978
merge 충돌
hykim02 Apr 21, 2025
a5704cb
[Fix]파일명 수정
hykim02 May 7, 2025
c1f0134
[Fix]파일명 수정
hykim02 May 7, 2025
e1916ba
Merge branch 'GNU-connect:main' into main
hykim02 May 9, 2025
4797300
[Feat]hikari, tomcat monitoring code
hykim02 May 9, 2025
95b7613
[Fix]redis db 수정 위해 cacheable 주석처리
hykim02 May 9, 2025
eef3202
[Fix]code rabbit 반영
hykim02 May 9, 2025
1e9729d
[Fix] build.test 오류 수정
hykim02 May 9, 2025
d175552
[Fix] Cacheable 활성화
hykim02 May 9, 2025
60c4ece
Merge branch 'main' into main
hykim02 May 9, 2025
23210a5
Merge branch 'GNU-connect:main' into main
hykim02 May 9, 2025
424f06f
[Fix] Cacheable 활성화
hykim02 May 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ private long calculateTtlUntilNextMidnight(Date dietDate) {


// Redis에서 조회 (없으면 DB에서 가져옴)
// @Cacheable(
// value = "cafeteriaList",
// key = "#p0",
// cacheManager = "contentCacheManager")
@Cacheable(
value = "cafeteriaList",
key = "#p0",
cacheManager = "contentCacheManager")
public List<CafeteriaDto> getCafeteriaList(int campusId) {
return cafeteriaRepositoryV2.findCafeteriaListByCampusId(campusId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
public class CafeteriaQueryService {
private final CafeteriaRepository cafeteriaRepositoryV2;

// @Cacheable(
// value = "cafeteriaId",
// key = "#p0 + '::' + #p1",
// unless = "#result == -1",
// cacheManager = "contentCacheManager")
@Cacheable(
value = "cafeteriaId",
key = "#p0 + '::' + #p1",
unless = "#result == -1",
cacheManager = "contentCacheManager")
public int getCafeteriaId(String cafeteriaName, int campusId) {
return cafeteriaRepositoryV2.findCafeteriaId(cafeteriaName, campusId).orElse(-1);
}

// @Cacheable(
// value = "cafeteriaUrl",
// key = "#p0",
// cacheManager = "contentCacheManager")
@Cacheable(
value = "cafeteriaUrl",
key = "#p0",
cacheManager = "contentCacheManager")
public String getImgUrl(int cafeteriaId) {
return cafeteriaRepositoryV2.findImgUrlByCafeteriaId(cafeteriaId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
public class CampusService {
private final CampusRepository campusRepositoryV2;

// @Cacheable(
// value = "campusId",
// key = "#p0",
// cacheManager = "contentCacheManager")
@Cacheable(
value = "campusId",
key = "#p0",
cacheManager = "contentCacheManager")
// 사용자의 campusId 받아 캠퍼스 이름 찾기
public String getUserCampusName(int campusId) {
return campusRepositoryV2.findCampusNameByCampusId(campusId);
Expand All @@ -29,10 +29,10 @@ public List<CampusEntity> getCampusList() {
return campusRepositoryV2.findCampusList();
}

// @Cacheable(
// value = "campusName",
// key = "#p0",
// cacheManager = "contentCacheManager")
@Cacheable(
value = "campusName",
key = "#p0",
cacheManager = "contentCacheManager")
// 캠퍼스 이름으로 id 찾기
public int getCampusId(String campusName) {
return campusRepositoryV2.findCampusIdByName(campusName);
Expand Down
Loading