목록Error&Warning (30)
처음부터 차근차근
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/v7VHI/btrfIYOxWqm/0kc112J6KkYKBplKE3cc0k/img.png)
LF will be replaced by CRLF in '파일명' = LF는 '파일명'에서 CRLF로 대체됩니다. (Linux는 CRLF will be replaced by LF in '파일명' 나옴) git add를 했더니 나오는 경고이다. 이런 경고가 뜨는 이유는 OS마다 줄바꿈이 다르기 때문이다. LF(Line-Feed) : 커서는 그대로 두고 바로 아랫줄로 이동. - Linux, Mac CR(Carriage Return) : 커서만 맨앞으로 옮김. - Mac초기모델 CRLF(Line-Feed + Carriage-Return) : 바로 아랫줄로 이동하고, 커서를 맨 앞으로 옮김. - Window, DOS git에서 어떤 줄바꿈 방법을 채택해야 하는지 혼란이 온 것이다. 이것을 해결하려면 git co..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/2FNWt/btrfQE8yy65/LAby7DJYcXojqa9tqqt2W0/img.png)
CGLIB is required to process @Configuration classes. Either add CGLIB to the classpath or remove the following @Configuration bean definitions: 원인은 CGLIB dependency를 추가해주지 않았기 때문이다. 해결 : pom.xml에 CGLIB dependency를 추가한다. (pom.xml에 아래의 코드를 추가한다.) cglib cglib 2.2.2
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/CVzQ2/btrffOEAwaA/sIoP8GB6jCH14klD6ek7oK/img.png)
에러 : PostConstruct cannot be resolved to a type 위와 같이 @PostConstruct, @PreDestroy를 사용하려 했더니 에러가 생긴다. 에러를 클릭해보면 import같은 걸로도 해결할 수 도없다. 해결 : pom.xml에 밑의 코드를 추가해준다. javax.annotation javax.annotation-api 1.3.2 javax.annotations 종속성을 추가해주면 해결되는 문제다. 그리고 다시 에러가 났던 클래스로 돌아가서 import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; 해주면 된다.
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/vnoDL/btreVxdzC9N/Kwnj0onvf9jzkK65A44Vq0/img.png)
에러 : cvc-id.3: A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type. 해결방법 : java.sun.com을 JAVA.sun.com으로 고치면 된다.
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dIzbVU/btre5ckDchS/SwLdyiocwmpbXTKwyNbQEk/img.png)
home.jsp에서 프로젝트를 실행하려고 했더니 404 error가 생겼다. 의외로 해결은 간단했다. 프로젝트에서 서버를 구동하면 된다. 그러면 위와 같이 home.jsp가 잘뜬다. home.jsp에서 서버 실행을 하거나 검색창에 home.jsp를 쳐서 home.jsp를 실행하는 것이 안되는 이유는 Spring FrameWork의 동작원리 때문이다. Spring FrameWork의 동작원리 클라이언트 요청 (요청한 인터넷 주소 : /first) ↓ 1. web.xml 실행 서버를 실행하면 가장 먼저 web.xml이 실행된다. web.xml의 내용 중 위의 코드에 의해 DispatcherServlet이 요청을 가로채고 servlet-context.xml을 실행한다. 2. servlet-context.xml..