728x90
반응형
스프링을 기본 생성해서 만들고 [3버전] 사용하다가 5버전 이후로 설정하고 실행해보니
에러가 없던게 갑자기 에러 화면이 나왔다.
Unable to find setter method for attribute :[commandName]
form의 modelAttribute와 commandName을 사용하고 있었는데 commandName이란 메소드를 찾을수 없다는 이유였다.
이게 5버전이후부터는 삭제됬다고 해서 commandName 은 없이 modelAttribute속성만 사용해서 하면 이상없이 잘 실행될것이다.
반응형
'IT 기술 > 스프링[Spring]' 카테고리의 다른 글
SqlMapClientFactoryBean , SqlSessionFactoryBean (0) | 2021.01.05 |
---|---|
JdbcTemplate , SqlMapClientDaoSupport (0) | 2021.01.04 |
@GetMapping , @PostMapping 등 어노테이션 import 에러 (0) | 2020.12.21 |
Eclipse Spring boot JSP 해석 dependency 추가 [스프링 부트 JSP 인식] (0) | 2020.12.11 |
Eclipse Spring boot 프로젝트 생성 (0) | 2020.12.09 |