關於ssm的配置檔案們
阿新 • • 發佈:2018-12-21
作為一次配置一直可以使用的配置檔案們,今天打算保留一下,反正拿去直接用就好,重點也不是在配置上。此框架會用到一下幾個配置檔案:web.xml,spring的配置檔案applicationContext.xml以及mybatis的配置檔案mybatisConfig.xml,db.properties。主配置也就這些。首先是最關鍵的web.xml配置:
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
classpath:applicationContext.xml
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF-8
encodingFilter
/
springmvc
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:applicationContext.xml
springmvc
.action