일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 자바편
- 리눅스
- 서버설정
- network configuration
- 이터레이터
- 네트워크 설정
- 데비안
- 코드로배우는스프링부트웹프로젝트
- d
- 스프링부트핵심가이드
- resttemplate
- 페이징
- 스프링 시큐리티
- 목록처리
- iterator
- 처음 만나는 AI 수학 with Python
- 자료구조와 함께 배우는 알고리즘 입문
- 자료구조와함께배우는알고리즘입문
- 처음 만나는 AI수학 with Python
- 구멍가게코딩단
- 친절한SQL튜닝
- 티스토리 쿠키 삭제
- baeldung
- Kernighan의 C언어 프로그래밍
- 코드로배우는스프링웹프로젝트
- GIT
- 선형대수
- /etc/network/interfaces
- 알파회계
- ㅒ
- Today
- Total
bright jazz music
java.lang.IllegalArgumentException: Name for argument type [java.lang.Integer] not available, and parameter name information not found in class file either. 본문
java.lang.IllegalArgumentException: Name for argument type [java.lang.Integer] not available, and parameter name information not found in class file either.
bright jazz music 2022. 7. 12. 11:14java.lang.IllegalArgumentException: Name for argument type [java.lang.Integer] not available, and parameter name information not found in class file either.
컴파일 시 debugging enabled 가 되어 있지 않으면 발생.
파라미터에 관한 정보를 찾지 못해서 발생하는 오류이다.
@PathVariable(name="listNo") integer listNo 처럼 name을 써주면 가능
@RequestParam의 네 가지 파라미터
- defaultValue : 값이 없을 때 기본으로 전달할 값
- name: uri에서 바인딩 할 파라미터의 이름. The name of the request parameter to bind to.
- value: uri에서 바인딩하여 별칭으로 정할 값. Alias for name().
- required: 필수적으로 값이 전달되어져야 하는 파라미터. 없으면 에러 발생
name과 value는 기능상 차이가 없음.
참조: https://stackoverflow.com/questions/42326686/requestparam-name-vs-value-attributes
https://blog.katastros.com/a?ID=01800-62477206-d2b9-42aa-b2f0-ed2d47bcecd2
Annotate the difference between the name and value attributes of @PathVariable (springmvc) - Katastros
After SpringMVC4.2, there are 4 parameters inside the RequestParam annotation: 1. String name; 2. String value; 3. boolean required; 4. String defaultValue; There are two attributes name and value that can be used to specify fields and variables What is th
blog.katastros.com
이는 @RequestParam에서도 동일하다.
@RequestParam, name vs value attributes
I am reading the documentation of the @RequestParam annotation in Spring MVC. What is the difference between name and value attributes? The documentation says: value : Alias for name(). n...
stackoverflow.com
RequestParam (Spring Framework 5.3.21 API)
Whether the parameter is required. Defaults to true, leading to an exception being thrown if the parameter is missing in the request. Switch this to false if you prefer a null value if the parameter is not present in the request. Alternatively, provide a d
docs.spring.io