@AuthenticationPrincipal import문제. org.springframework.security 사용할때 pom 설정 방법
@AuthenticationPrincipal 사용시에 문제가 있었다. 스프링부트 security 의존성 라이브러리를 추가하면 된다. org.springframework.security spring-security-core 5.6.1 위와 같은 내용을 pom.xml에 추가하고, maven 업데이트를 진행시키면된다.