Spring classpath prefix difference

前端 未结 4 719
滥情空心
滥情空心 2020-11-28 00:51

Documented here it states

This special prefix specifies that all classpath resources that match the given name must be obtained (internally, thi

4条回答
  •  清酒与你
    2020-11-28 01:07

    SIMPLE DEFINITION

    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.

提交回复
热议问题