error 4

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path 에러

SpringMVC의 view 부분에 jsp파일을 만들던 도중 이러한 에러가 발생했다. ctrl + a -> ctrl + x -> ctrl + v 해봐도 여전했다. 구글링을 통해 찾아보니까 서버 쪽 에러라고 한다. 응? 나 근데 왜 서버 잘 연결되어있는데... 다시 찾아보니 Project Facets쪽 연결을 확인해보라고 한다. 이 부분에 체크가 풀려있었는데 다시 체크하고 Apply and Close 시키면 에러가 사라져 있는 걸 확인할 수 있다.

Java/Error 2021.07.31

NoUniqueBeanDefinitionException 에러

의 속성 중 autowire에서 byType을 사용했을 때 에러가 발생했다. Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'com.test02.Food' available: expected single matching bean but found 2: favoriteFood,unFavoriteFood at org.springframework.beans.factory.config.DependencyDescriptor.resolveNotUnique(DependencyDescriptor.java:220) at org.springframework.beans.factory...

Java/Error 2021.06.22

Invalid property ' ' of bean class 에러

spring에서 DI 유형 중 setter 유형으로 setter를 만들고 객체를 생성할 때 값을 잘못주입해서 에러가 발생했다. Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'myclass' of bean class [com.test01.BeanTest]: Bean property 'myclass' is not writable or has an invalid setter method. Did you mean 'myClass'? at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.jav..

Java/Error 2021.06.21

[Git] Github에 잔디가 안 나올 때 (안 심어질 때)

github에서 잔디란? 사진과 같이 github에 무엇인가 commit했을 때 그 commit한 횟수에 따라 해당 날짜에 초록색으로 보이는 이미지가 들어가는 것인데 마치 잔디와 같아서 그렇게 이름 붙였다. 요새는 블로그도 1일 1포스팅을 목표로 하고있고 내 github도 1commit을 목표로 열심히 하고 있었는데 언제부턴가 git push를 아무리해도 github에 잔디가 생성되지 않았다. 뭔가 이상해서 원인을 알아보니 깃허브 계정의 이메일, 유저이름 과 config의 이메일, 유저이름이 같아야 push 했을 때 contributions에 잔디가 생긴다. 그럼 이를 어떻게 확인해야 할까? (저는 git bash를 사용하여 commit하므로 명령어만 알려드리겠습니다.) github에서 쓰는 아이디, 이..

Git/Git 2021.06.15