Spring在上下文配置文件中加载资源时是否提供任何方式来输出类路径环境变量的实际内容?
<!-- Import the special context -->
<import resource="classpath:mySpecialApplicationContext.xml"/>
我将 Springframework 类的 Log4J 日志记录级别设置为 ALL,但该值似乎没有被框架记录。我试图弄清楚Spring是否正在从依赖项中加载它,并且我想在应用程序运行时查看类路径设置。该应用程序由Maven构建,具有许多依赖项。
如果类路径中有两个或多个mySpecialApplicationContext.xml ,那么Spring使用哪一个?
谢谢你。