idea相關 配置文件相關

idea2015 插件較爲豐富
community 社區版 免費
MyBatis plugin插件 install 安裝 插件主要作用: 開發時可以直接通過Dao接口跳轉
到Mapper文件 也可以通過Mapper文件直接跳轉到Dao中

Mybatis pageHelper

spring-mvc-showcase spring-petclinie spring 官方例子

web.xml 配置
filter 過濾器配置 主要用於轉碼 利用啦Spring中CharacterEncodingFilter類
進行統一的出入參轉化
listener 監聽器 主要利用Spring中RequestContextListener監聽web容器的啓動與關閉

ContextLoaderListener主要用於web容器與Spring整合的監聽器

context-param 通過contextConfigLocation加載Spring部分配置文件

serverlet 通過Spring中DispatcherServlet對 指定路徑請求進行攔截


applicationContext
<context:component-scan> 掃描註解配置
<import> 引入配置
propertyConfigurer Spring中讀取.properties文件中的屬性
dataSource 數據庫連接池

SqlSessionFactoryBean 中MapperLocations 指定mapper文件的位置

PageHelper 配置時需要指定那個數據庫方言 dialect=_______

spring-mvc.xml
StringHttpMessageConverter 編碼配置


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章