Java 在Tomcat中从外部目录读取可重新加载的xml文件

Java 在Tomcat中从外部目录读取可重新加载的xml文件,java,xml,hibernate,tomcat,Java,Xml,Hibernate,Tomcat,我的要求与我的相似 我需要将HibernateXML和属性文件放在分解的war文件之外,即tomcat/my_文件夹中 我使用下面的代码通过applicationcontext.xml导入此xml和属性文件 <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locatio

我的要求与我的相似

我需要将HibernateXML和属性文件放在分解的war文件之外,即tomcat/my_文件夹中

我使用下面的代码通过applicationcontext.xml导入此xml和属性文件

<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="location" value="file:D:/my_folder/jdbc.properties" />  
</bean>

<!-- Load Hibernate related configuration -->
<import resource="file:D:/my_folder/hibernate-context.xml" />

这些文件的导入工作正常,但当我更新这些文件时,除非重新启动Tomcat,否则这些更改不会反映出来

我还在tomcat服务器的 context.xml。此外,我还在中为这些文件添加了条目 监视资源标记。但这一切都不起作用,因为它只检查爆炸战争中的文件


请帮我解决这个问题

你认为Hibernate支持重新加载配置文件吗?你认为Hibernate支持重新加载配置文件吗?