본문 바로가기

ecsimsw

검색하기
ecsimsw
프로필사진 JinHwan Kim

  • 분류 전체보기 (279)
    • Issues (1)
      • Opened (0)
      • Closed (1)
    • KimJinHwan (37)
      • Project (18)
      • Daily Life (19)
    • Architecture (32)
      • Application (8)
      • Infrastructure (20)
      • CICD (4)
    • Language (36)
      • Java, Kotlin (18)
      • C++, C# (18)
    • Server application (21)
      • Spring (9)
      • Node.js (12)
    • Computer Science (89)
      • Operating system (34)
      • Network (28)
      • Computer architechture (8)
      • Software engineering (9)
      • Linux, Git (10)
    • Database (2)
      • SQL, JDBC (1)
      • ORM (1)
    • Machine Learning (38)
      • Tensorflow (11)
      • tf_source (10)
    • Etc (23)
      • Unity (23)
Recent Comments
관리 메뉴 ecsimsw

목록Server application/Spring (9)

ecsimsw

FlashAttribute 으로 세션을 이용한 리다이렉트

RedirectAttributes 의 addAttribute RedirectAttributes.addAttribute을 이용하는 경우 쿼리 파라미터로 데이터가 포함되어 재요청된다. 예를 들어 아래처럼 핸들러를 작성하는 경우 리다이렉트의 요청 url은 '/redirected?name=jinhwan' 일 것이다. @GetMapping(value="/hello") public String hello(RedirectAttributes redirectAttributes){ redirectAttributes.addAttribute("name", "jinhwan"); return "redirect:/redirected"; } 이는 리다이렉트 시 넘겨야하는 값이 쿼리에 표시가 되어야하기 때문에 String으로 변환이 ..

Server application/Spring 2020. 8. 8. 15:24
Prev 1 2 Next

티스토리툴바