2015-04-05 71 views
0

我試圖從3.2更新到4.1.6版本,我下載了罐子,並用舊的替換它們。春季更新版本

問題是我必須更改application-context.xml中的schemaLocation版本嗎?

回答

0

如果你沒有例外,並且應用程序可以工作,那麼不需要。 如果你有沒有版本的模式:

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans.xsd"> 

,而不是

<beans xmlns="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans 
    http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> 

的framewrok將得到正確的架構。