메모장

  • 홈
  • 태그
  • 방명록

spring 2

[spring] required (error: parameter '' is not present)

code:400 message:HTTP Status 400 - Required String parameter '' is not present error:Bad Request 에러가 발생할 때 해결 법이다. required의 default값은 true인데 여러 파라미터를 받을 때 필수가 아닌 파라미터에 false로 설정하여 사용. @RequestMapping(value = "/url", method = RequestMethod.POST) @ResponseBody public void f(@RequestParam(value = "paramName", required=false)){ }

error 2022.06.11

List, Array 형태 데이터 파라미터로 Spring 서버와 ajax 통신

일반적인 방법으로 arr전송시 에러가 발생. (ajax에서 controller로 넘어가기 전에 데이터 형태가 맞지않다는 에러) Controller 파리미터 부분에 @RequestParam(value="CREATEDDATAS[]") String[] CREATEDDATAS @RequestParam(value="CREATEDDATAS[]") List CREATEDDATAS @RequestParam(value="CREATEDDATAS") List CREATEDDATAS 위와 같은 방법을 시도했지만 계속 에러가 나서 아래 방법으로 해결함! ajax var data = [{"key1" : "data1", "key2" : "data1"}, {"key1" : "data2", "key2" : "data2"}]; func..

Frontend/HTTP 통신 2022.05.08
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (303)
    • Frontend (107)
      • javaScript (31)
      • react (30)
      • vue3 (25)
      • angularjs (2)
      • jquery (4)
      • html (4)
      • css (3)
      • HTTP 통신 (8)
    • gridLib (24)
      • auiGrid (2)
      • agGrid (7)
      • jqGrid (15)
    • Backend (69)
      • JAVA (25)
      • spring (Boot) (29)
      • spring cloud (MSA) (10)
      • tomcat (2)
      • API (3)
    • DB (25)
      • 데이터 관리 (5)
      • RDBMS (16)
      • NoSQL (4)
    • python (2)
    • study (43)
      • 클라우드&쿠버네티스 (7)
      • 보안 (6)
      • 알고리즘 문제 풀이 (28)
      • 네트워크 (2)
    • tool (4)
      • git (5)
    • error (13)

Tag

mybatis, 프로그래머스 정렬, JWT, 백준, softeer, 2024 데브크루, dfs, Spring Security, MSA, jqgrid, 프로그래머스 dfs bfs, 프로그래머스, vue emit, dfs bfs, BFS, JavaScript, Python, redis, error, KINX,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Copyright © Kakao Corp. All rights reserved.

티스토리툴바