频道栏目
首页 > 资讯 > Java > 正文

SSH框架整合模板配置文件

15-05-08        来源:[db:作者]  
收藏   我要投稿

Struts2的配置

展示了package的配置和constan的使用





    
    
    
    
    
    
    
    

    
        
            /index.jsp
            /reg12.jsp
        
        
            /index.jsp
            user_toOpenBasic
            /perfect.jsp
            /dealwith.jsp
            /perfect.jsp
            user_toOpenBasic
            /WEB-INF/basic.jsp
            /WEB-INF/tologin.jsp
        
    

    
        
            /error.jsp
/action>
    


Web.xml



    
    
        contextConfigLocation
        classpath:applicationContext.xml
    
    
        serverName
        http://localhost:8080/Profile/user_login.do
    
    
        casServerLogoutUrl
        http://localhost:8080/usercenter/logout
    

    
        Character Encoding Filter
        org.springframework.web.filter.CharacterEncodingFilter
        
            encoding
            UTF-8
        
    
    
        Character Encoding Filter
        /*
    

    
    
        InjectFilter
        com.profile.util.InjectFilter
        
        
            invalidsql
            select insert delete update create destory '
        
        
        
            error
            /exception/errcon.jsp
        
        
        
            debug
            true
        
    
    
        InjectFilter
        /*
    

    
        AdminFilter
        com.profile.util.AdminFilter
        
            excludedPages
            /admin_login.do
        
    
    
        AdminFilter
        /*
    
    
    
        OwnerFilter
        com.profile.util.OwnerFilter
    

    
    
        org.jasig.cas.client.session.SingleSignOutHttpSessionListener
    

    
    
        CAS Single Sign Out Filter
        org.jasig.cas.client.session.SingleSignOutFilter
    
    
        CAS Single Sign Out Filter
        /*
    

    
    
        CASFilter
        org.jasig.cas.client.authentication.AuthenticationFilter
        
            casServerLoginUrl
            http://localhost:8080/usercenter
            
        
        
            serverName
            http://localhost:8080
        
    
    
    
        CAS Validation Filter
        org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter
        
            casServerUrlPrefix
            http://localhost:8080/usercenter
        
        
            serverName
            http://localhost:8080
        
    
    
    
        CAS HttpServletRequest Wrapper Filter
        org.jasig.cas.client.util.HttpServletRequestWrapperFilter
    
    
    
        CAS Assertion Thread Local Filter
        org.jasig.cas.client.util.AssertionThreadLocalFilter
    

    
    
        struts2
        org.apache.struts2.dispatcher.FilterDispatcher
    


    
        OwnerFilter
        /*
    

    
        CASFilter
        /user_login.do
    
    
        CAS Validation Filter
        /*
    
    
        CAS HttpServletRequest Wrapper Filter
        /*
    
    
        CAS Assertion Thread Local Filter
        /*
    
    
        struts2
        /*
    
    
    
        org.springframework.web.context.ContextLoaderListener
    
    
        com.profile.util.SessionListener
    
    
    
        CheckCodeServlet
        com.profile.util.CaptchaImageCreateController
    
    
        CheckCodeServlet
        /code
    
    
    
        /WEB-INF/basic.jsp
    
    
        404
        /exception/error.jsp
    
    
        BASIC
    
    

applicationContext.xml文件的配置



    
    
        
            com.mysql.jdbc.Driver
        
        
            jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
            
        
        
            root
        
        
            123123
        
    
    
        
            
        
        
            
                org.hibernate.dialect.MySQLDialect
                update
                true
                true
            
        
        
            
                
                com/profile/bean/Province.hbm.xml
                com/profile/bean/City.hbm.xml
            
        
    
    
    
        
            
   
相关TAG标签
上一篇:递归算法——BOX FRACTAL 盒分形(POJ2083)
下一篇:浅谈JAVA设计模式之——享元模式(Flyweight)
相关文章
图文推荐

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站