자바맨

  • 홈
  • Github

redis 1

[Spring Boot] Spring Boot Application 을 재시작해도 Spring cache가 초기화 되지 않는 문제 해결

Introduction Spring-boot-starter-cache 라이브러리를 사용하던 중 Spring Application 을 재시작해도 캐시가 초기화 되지 않아 빈 DB를 조회해도 Cache 에서 데이터를 꺼내 반환하는 문제가 발생하였다. 심지어 Intellij 를 껏다 켜도 마찬가지였다. 컴퓨터를 재부팅 해야지만 캐시가 초기화 되었다. 상식적으로 Spring cache는 Spring Application 내부의 메모리를 사용하는 것일텐데 어떻게 App 이 종료되어도 캐시가 초기화되지 않는 것인가? Code Controller @GetMapping("/{postId}") public ResponseEntity getPost(@PathVariable long postId) { return Respo..

개발/Spring Boot 2024.02.07
이전
1
다음
더보기

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
  • 분류 전체보기 (39)
    • 개발 (13)
      • Java (2)
      • Kotlin (2)
      • Spring Boot (4)
      • AWS (2)
      • Intellij (1)
      • JUnit (1)
      • Jenkins (0)
      • JSP & Servlet (1)
    • 코딩테스트(Kotlin) (26)
      • LeetCode Top Interview 150 (25)

Tag

AMI, EC2, java, Routing, leetcode, JSP, junit, Servlet, AWS, Tomcat, redis, spring cache, spring boot, cache, Spring, ModelMapper, Peering, VPC, IntelliJ, ClassNotFoundException,

최근글과 인기글

  • 최근글
  • 인기글

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • Github

티스토리툴바