728x90
반응형
SMALL

23.02.28

51일차

미니프로젝트 주차

2023-02-27 14:19:49.696 ERROR 12403 --- [nio-8080-exec-8] o.h.engine.jdbc.spi.SqlExceptionHelper : Field 'content' doesn't have a default value 2023-02-27 14:19:49.708 ERROR 12403 --- [nio-8080-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception

[Request processing failed;

nested exception is org.springframework.orm.jpa.JpaSystemException:

could not execute statement;

nested exception is org.hibernate.exception.GenericJDBCException:

could not execute statement] with root cause

  1. @NotBlank : 닉네임 입력폼이 비어있는 상태로 요청을 보내면 해당 에러메시지가 나타납니다.
  2. @Size : 지정된 사이즈에 벗어나는 값 입력시 해당 에러메시지가 나타납니다.
  3. @Email : 이메일 형태만 입력이 가능합니다.
  4. @Pattern : 지정된 패턴만 입력하게 하여 휴대폰 번호 폼에서 이상한 값들이 요청되는 것을 방지합니다.

Required URI template variable 'username' for method parameter type String is not present

→ url에 {id}입력을 안해서 생긴 문제

Request method 'GET' not supported

POST로 변경한 후, 요청이 하나 들어왔다. 유효하지 않은 토큰이다 라고

그 후터

nio-8080-exec-9] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'GET' not supported]

{
    "msg": "토큰이 유효하지 않습니다",
    "statusCode": 400
}

방식이 포스트였다..!

근데.. 여전히 뜨는 오류... 흑흑.. 

Request method 'GET' not supported

 

728x90
반응형
LIST

'일상 > TIL' 카테고리의 다른 글

53일차  (0) 2023.03.02
52일차  (0) 2023.03.01
50일차  (0) 2023.02.27
49일차  (0) 2023.02.26
48일차  (0) 2023.02.25

+ Recent posts