본문 바로가기
JAVA/Error

[ Spring ] java.lang.IllegalArgumentException: Name for argument of type 에러 해결 방법

by 알기 쉬운 코딩 사전 2024. 4. 10.
반응형

💥 application run 시 발생한 에러 메시지

java.lang.IllegalArgumentException: Name for argument of type [com.example.demo.domain.type.SearchType] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.

 

에러 메시지
에러 메시지2

 

톰캣 에러 메시지

 

❓에러 발생 이유

build를 인텔리제이로 해서 발생한 에러이다. 인텔리제이에서 빌드할 때는 -parameters' 플래그가 기본적으로 사용되지 않을 수 있습니다.

 

✅ 해결 방법

 

✔️ 해결 방법

  •  build를 인텔리제이에서 gradle로 변경해 주면 해결된다.

해결 방법

반응형

댓글