直接上代碼? 首先是從程序的入口開(kāi)始說(shuō):
web.xml
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
index.jsp
設(shè)置session過(guò)期的時(shí)間
讀取spring的配置文件
-->
contextConfigLocation
classpath:config/spring.xml;classpath:config/spring-myBatis.xml
org.springframework.web.context.ContextLoaderListener
org.springframework.web.util.IntrospectorCleanupListener
設(shè)置字符編碼,將所有的字符編碼同意設(shè)置為utf-8
-->
filterEncoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
utf-8
filterEncoding
生成一次性驗(yàn)證碼的servlet
-->
verifyCode
com.longhang.tool.verifyCode.VerifyCodeServlet
將所有*.do的請(qǐng)求交給springMVC的DispatcherServlet來(lái)處理
-->
DispatcherServlet
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:config/springMVC-config.xml
1
verifyCode
/verifyCode
DispatcherServlet
*.do
springMVC的配置文件
http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aophttp://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context-3.0.xsd">
配置自動(dòng)掃描的包秧倾,讓其掃描? ? com.longhang,controller下面的所有包
-->
配置視圖解析器
將視圖邏輯名解析為/*.jsp
-->
spring.xml的配置
http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
">
spring-myBatis.xml配置
http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
"
自動(dòng)掃描 將Mapper接口生成代理注入到Spring
框架/平臺(tái)構(gòu)成:
Maven+Springmvc + Mybatis + Shiro(權(quán)限)+ Tiles(模板) +ActiveMQ(消息隊(duì)列) + Rest(服務(wù)) + WebService(服務(wù))+ EHcache(緩存) + Quartz(定時(shí)調(diào)度)+ Html5(支持PC悟衩、IOS诡曙、Android)
用戶權(quán)限系統(tǒng):
組織結(jié)構(gòu):角色何恶、用戶、用戶組孝偎、組織機(jī)構(gòu)渊跋;權(quán)限點(diǎn):頁(yè)面、方法舷手、按鈕拧簸、數(shù)據(jù)權(quán)限、分級(jí)授權(quán)
項(xiàng)目管理新體驗(yàn):
快速出原型系統(tǒng)男窟、組件樹(shù)盆赤、版本控制、模塊移植歉眷、協(xié)同開(kāi)發(fā)牺六、實(shí)時(shí)監(jiān)控、發(fā)布管理
可持續(xù)集成:
所有組件可移植汗捡、可定制淑际、可擴(kuò)充,開(kāi)發(fā)成果不斷積累扇住,形成可持續(xù)發(fā)展的良性循環(huán)
支持平臺(tái)平臺(tái):
Windows XP庸追、Windows 7 、Windows 10 台囱、 Linux 淡溯、 Unix
服務(wù)器容器:
Tomcat 5/6/7 、Jetty簿训、JBoss咱娶、WebSphere 8.5