본문 바로가기

카테고리 없음

form에 java int 타입 추가했더니 400 Bad Request

728x90

폼에 자바 int 타입 <input type=number value=""/> 추가했는데

int 타입에 null 들어가니 에러..

 

400 Bad Request

 

The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

 

서버는 클라이언트 오류 (예 : 잘못된 요청 구문, 잘못된 요청 메시지 프레이밍 또는 사기성 요청 라우팅)로 인식되는 요청으로 인해 요청을 처리 할 수 없거나 처리하지 않습니다.

 

https://okky.kr/article/393894 원하는답없음

https://pu-li.tistory.com/36 int 타입에 null이 들어가서 그렇다!이건거 같은데

 

form 태그 데이터 전송 실패 400 Bad Request

@RequestMapping(value="/join", method=RequestMethod.POST) public String joinPOST(Member member) { Utils.logName(); service.regist(member); return "redirect:/"; } ====================================..

pu-li.tistory.com

 

728x90