單點登陸,這個作了很長時間,是時間作個總結和積累了。首先看咱們的配置文件ajax
<filter-mapping> <filter-name>CASFilter</filter-name> <url-pattern>/orderModule/order/index</url-pattern> <url-pattern>/orderModule/order/ajaxIndex</url-pattern> <url-pattern>/orderModule/order/unpaidCount</url-pattern> <url-pattern>/orderModule/order/unhandleProposal</url-pattern> <url-pattern>/orderModule/order/findPriceProposal</url-pattern> <url-pattern>/orderModule/order/unpayOrder</url-pattern> <url-pattern>/orderModule/order/findZOrder</url-pattern> <url-pattern>/orderModule/order/delOrder</url-pattern> <url-pattern>/orderModule/order/saveRemark</url-pattern> <url-pattern>/orderModule/order/relateOrdersLogon</url-pattern> <url-pattern>/orderModule/order/getCarOrders</url-pattern> <url-pattern>/policyModule/Policy/addPolicy</url-pattern> <url-pattern>/policyModule/Policy/cannelJoinPolicy</url-pattern> <url-pattern>/policyModule/Policy/Evaluate</url-pattern> <url-pattern>/policyModule/Policy/renelk</url-pattern> <url-pattern>/policyModule/Policy/searchAllPolicy</url-pattern> <url-pattern>/policyModule/Policy/sendMessage</url-pattern> <url-pattern>/policyModule/Policy/showPolicyList</url-pattern> <url-pattern>/policyModule/Policy/addPrpdata</url-pattern> <url-pattern>/policyModule/Policy/InformationAjax</url-pattern> <url-pattern>/policyModule/Policy/savaFromUnderWrite</url-pattern> <url-pattern>/policyModule/Policy/InformationAjax</url-pattern> <url-pattern>/policyModule/Policy/switchForCar</url-pattern> <url-pattern>/policyModule/Policy/getPolicyByName</url-pattern> <url-pattern>/policyModule/Policy/getPolicyNo</url-pattern> <url-pattern>/policyModule/Policy/carEpolicyINfo</url-pattern> <url-pattern>/policyModule/Policy/getLpolicyInfo</url-pattern> <url-pattern>/personalInfo/customerInfo/bindMobile</url-pattern> <url-pattern>/personalInfo/customerInfo/findPersonData</url-pattern> <url-pattern>/personalInfo/customerInfo/findModifyPwd</url-pattern> <url-pattern>/personalInfo/customerInfo/modifyPwd</url-pattern> <url-pattern>/personalInfo/customerInfo/findMyPhoto</url-pattern> <url-pattern>/personalInfo/customerInfo/savePhoto</url-pattern> <url-pattern>/personalInfo/customerInfo/sendMailLink</url-pattern> <url-pattern>/personalInfo/customerInfo/sendMobileValCode</url-pattern> <url-pattern>/personalInfo/customerInfo/unbindMobile</url-pattern> <url-pattern>/personalInfo/customerInfo/updatePersonData</url-pattern> <url-pattern>/personalInfo/customerInfo/getWeatherPM</url-pattern> <url-pattern>/personalInfo/customerInfo/userSafe</url-pattern> <url-pattern>/personalInfo/customerInfo/transfer</url-pattern> <url-pattern>/servicesModule/addComplaint</url-pattern> <url-pattern>/servicesModule/getQxInfo</url-pattern> <url-pattern>/servicesModule/addConsultation</url-pattern> <url-pattern>/servicesModule/findCarViolationforCity</url-pattern> <url-pattern>/servicesModule/findComplaint</url-pattern> <url-pattern>/servicesModule/findConsultation</url-pattern> <url-pattern>/servicesModule/findRecomment</url-pattern> <url-pattern>/servicesModule/findMySubscribe</url-pattern> <url-pattern>/servicesModule/searchPolicy</url-pattern> <url-pattern>/servicesModule/addPolicyEvalute</url-pattern> <url-pattern>/servicesModule/findMyPolicy</url-pattern> <url-pattern>/servicesModule/updateMySubscribtion</url-pattern> <url-pattern>/servicesModule/updateReceiveEmail</url-pattern> <url-pattern>/servicesModule/saveEmail</url-pattern> <url-pattern>/servicesModule/findViolationforEntry</url-pattern> <url-pattern>/servicesModule/sendReferrerEmail</url-pattern> <url-pattern>/views/orderModule/*</url-pattern> <url-pattern>/insuringInfoManagement/*</url-pattern> <url-pattern>/views/insuringInfoManagement/*</url-pattern> <!-- <url-pattern>/personalInfo/customerInfo/*</url-pattern> --> <url-pattern>/views/personalInfo/*</url-pattern> <url-pattern>/policyModule/Update/*</url-pattern> <!-- <url-pattern>/views/policyModule/*</url-pattern> --> <!-- <url-pattern>/servicesModule/*</url-pattern> --> <url-pattern>/views/servicesModule/*</url-pattern> <url-pattern>/zProposalModule/*</url-pattern> <url-pattern>/views/zProposalModule/*</url-pattern> </filter-mapping>
衆位看官看到問題了不?是否是顯得很亂啊這個配置文件。這是由於前期的客戶端系統設計中,沒有按照受保護和不受保護的資源設置請求路徑,致使有的包裏面既有受保護的資源,又有不受保護的資源,因此,這就致使了一些問題。
app
因此衆位看官,請注意啦 若是要設計成漂亮的單點登陸系統,最好的方法是在程序的時機最初,路由請求就作了很是好的定義規則。
lua