Posts [개발자 블로그] Spring classpath configuration
Post
Cancel

[개발자 블로그] Spring classpath configuration

Spring의 classpath란?

  • spring의 web.xml설정 중 classpath를 통해 파일 위치를 설정할 수 있다.
  • 이클립스의 프로젝트 우클릭 => build path => configure build path => 가장 왼쪽의 soucre메뉴를 클릭하면 classpath를 확인 할 수 있다.
    image

  • root-context.xml과 servlet-context.xml을 해당 경로에 위치 시켜두고
    image

  • web.xml 설정을 다음과 같이 바꾸면 정상적으로 해당 파일들을 불러들일 수 있다.
    image

출처

This post is licensed under CC BY 4.0 by the author.