newsource

  • 홈
  • 태그
  • 방명록

Spring-boot 22

Spring ResponseStatusException이 이유를 반환하지 않음

Spring ResponseStatusException이 이유를 반환하지 않음 나는 아주 간단한 것이 있다.@RestController커스텀 에러 메시지를 설정하려고 합니다.하지만 어떤 이유에선지message에러가 표시되지 않기 때문입니다. 이것은 내 컨트롤러입니다. @RestController @RequestMapping("openPharmacy") public class OpenPharmacyController { @PostMapping public String findNumberOfSurgeries(@RequestBody String skuLockRequest) { throw new ResponseStatusException(HttpStatus.BAD_REQUEST, "This postcode is..

programing 2023.03.01

봄 MVC 3에서는 ModelAndView를 반환하면서 쿠키를 작성하는 방법은 무엇입니까?

봄 MVC 3에서는 ModelAndView를 반환하면서 쿠키를 작성하는 방법은 무엇입니까? 컨트롤러 메서드가 반환하는 것은ModelAndView단, cookie를 클라이언트에 회신해야 하는 요건도 있습니다.봄에 할 수 있을까요?감사해요. 핸들러 메서드에 응답을 파라미터로 추가하는 경우(3.2.x, 4.0.x, 4.1.x, 4.3.x, 5.x.x의 경우 주석 첨부 메서드의 유연한 시그니처 참조) cookie를 응답에 직접 추가할 수 있습니다. 코틀린 @RequestMapping(["/example"]) fun exampleHandler(response: HttpServletResponse): ModelAndView { response.addCookie(Cookie("COOKIENAME", "The cook..

programing 2023.02.15
이전
1 2 3
다음
더보기
프로필사진

각종 프로그래밍 정보를 다루는 블로그입니다.

  • 분류 전체보기 (1444)
    • programing (1444)

Tag

wordpress, MongoDB, angularJS, C, MariaDB, javascript, vuejs2, vuex, Git, Spring-boot, reactjs, json, Excel, asp.net, php, jQuery, Oracle, Java, mysql, python,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바