오류 또는 예외 로그들
springframework.beans.NotReadablePropertyException
코딩하는 원숭이
2021. 10. 28. 14:32
org.springframework.beans.NotReadablePropertyException: Invalid property 'principal.username' of bean class [org.springframework.security.authentication.AnonymousAuthenticationToken]: Bean property 'principal.username' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
스프링 프로젝트로 CKeditor를 적용하기 위해 기존에 있던 jsp파일을 새이름으로 복붙해서 톰캣으로 실행해보았더니 헤더만 정상 출력되고 나머지 화면은 아래와 같이 빈 화면으로 나오는 예외였다.
오류가 발생하는 jsp파일에서 <sec:authentication property="principal.username" var="userId"/>부분을 주석처리 했더니 해결되었다.