wrkbrs
[Spring] classpath prefix difference -classpath* 본문
Documented here it states
This special prefix specifies that all classpath resources that match the given name must be obtained (internally, this essentially happens via a ClassLoader.getResources(...) call), and then merged to form the final application context definition.
Can someone explain this?
What is the difference between using classpath*:conf/appContext.xml as opposed to classpath:conf/appContext.xml without the asterisk.
The classpath*:conf/appContext.xml simply means that all appContext.xml files under conf folders in all your jars on the classpath will be picked up and joined into one big application context.
In contrast, classpath:conf/appContext.xml will load only one such file... the first one found on your classpath.
https://stackoverflow.com/questions/3294423/spring-classpath-prefix-difference
'Spring' 카테고리의 다른 글
서블릿 컨테이너, 스프링부트 동작 과정 (0) | 2019.07.11 |
---|---|
오라클 드라이버 에러 - Registered driver with driverClassName=oracle.jdbc.driver.OracleDriver was not found, trying direct instantiation (0) | 2019.02.06 |
[Spring] 14. web.xml 한글처리 필터 (0) | 2018.11.07 |
resources Container (0) | 2018.11.02 |
pom.xml (0) | 2018.11.02 |