我在 web.xml 中遇到了这段代码,但我不明白它的作用。
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:my-main-spring.xml</param-value>
</context-param>
我可以知道类路径在 web.xml 中做什么吗?我在哪里可以找到有关此内容的更多引用或阅读 Material ?
最佳答案
抱歉问了愚蠢的问题,我已经从这个帖子中得到了答案>How to import spring-config.xml of one project into spring-config.xml of another project? .
关于web.xml - web.xml 中的类路径做什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11227080/