이어서 질문입니다.
- 작성자 :
- 임*원
- 작성일 :
- 2010-10-11 23:40:25
- 조회수 :
- 3,015
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
다른 궁금한점
1. context-datasource.xml의
[value 엘리먼트의 classpath 를 원래있는대로 놔두어도 되는지]
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/egovframework/egovProps/globals.properties</value>
</list>
</property>
</bean>
2.
10. 10. 11 오후 6시 48분 42초: Missing artifact ojdbc:ojdbc:jar:14:compile
이렇게 콘솔창에 뜨는데 어떻게 해야하지요.
1. context-datasource.xml의
[value 엘리먼트의 classpath 를 원래있는대로 놔두어도 되는지]
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/egovframework/egovProps/globals.properties</value>
</list>
</property>
</bean>
2.
10. 10. 11 오후 6시 48분 42초: Missing artifact ojdbc:ojdbc:jar:14:compile
이렇게 콘솔창에 뜨는데 어떻게 해야하지요.
A
안녕하세요.. 임교원님..
PropertyPlaceholderConfigurer의 locations는 property 파일을 위치를 지정하는 것으로.. 다음과 같은 prefix 사용이 가능합니다.
- classpath: classpath 상 경로 지정
- file: 디스크 영역 상 경로 지정 (절대 경로로 외부 지정 가능)
- http: URL 경로 상 지정
따라서 질문하신 classpath는 원래 위치에 놓으셔도 되고.. 변경하셔도 됩니다.
다만, classpath 상 경로에 해당 파일이 있으면 됩니다.
2번에 대한 답변은 이전 질문의 답변을 참조하시기 바랍니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
PropertyPlaceholderConfigurer의 locations는 property 파일을 위치를 지정하는 것으로.. 다음과 같은 prefix 사용이 가능합니다.
- classpath: classpath 상 경로 지정
- file: 디스크 영역 상 경로 지정 (절대 경로로 외부 지정 가능)
- http: URL 경로 상 지정
따라서 질문하신 classpath는 원래 위치에 놓으셔도 되고.. 변경하셔도 됩니다.
다만, classpath 상 경로에 해당 파일이 있으면 됩니다.
2번에 대한 답변은 이전 질문의 답변을 참조하시기 바랍니다.
그럼.. 즐거운 하루되십시오.
감사합니다.