開(kāi)心每一天1111
2018-12-15 15:11:36
在eclipse里面怎么運(yùn)行maven配置的spring mvc
1 回答

PIPIONE
TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超9個(gè)贊
首先是配置文件,contextConfig.xml文件要配置好,這是第一步。其次,。在web.xml里面配置監(jiān)聽(tīng),還有對(duì)contextLocation的位置的設(shè)置。,
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
添加回答
舉報(bào)
0/150
提交
取消