在web應用程序中使用Spring

若是想把spring用在web應用程序上,只須要修改三步web 1.把applicationContext.xml放到WEB-INF下 spring 2.另外導入一個jar包spring-web-3.2.4.RELEASE.jartomcat 3.在web.xml中配置一個監聽器 ContextLoaderListener服務器 <listener> <listener-class> o
相關文章
相關標籤/搜索