SSM-Shiro整合配置文件

  我在CSDN同步更新 喜好白色代码背景的同学可去看


  暑假学习了SSH以及SSM框架的内容,开学几个星期也陆陆续续看了一下Shiro以及SpringSecuity对用户权限的管理方法。

  • 虽然Shiro并不像SpringSecuiity一样功能强大,但它对于新手比较友好,容易上手。
  • 对比于SpringSecuity,开发一个轻量级的网站速度更快,所需的功能也基本上够用。
  • 另外它独立性比较强,可以整合其他开源框架,而SpringSecuity依赖于Spring环境
    用一下随笔来记录一下自己配置文件,方便日后查看

1、文件目录

SSM-Shiro整合配置文件_第1张图片
SSM-Shiro结构.png
SSM-Shiro整合配置文件_第2张图片
SSM-Shiro结构2.png


2、配置文件

  • porm.xml




    4.0.0
    shiro_day2
    shiro
    1.0-SNAPSHOT
    war

    shiro_day2 Maven Webapp
    
    http://www.example.com

    
        UTF-8
        1.8
        1.8

        1.4.1
        5.0.2.RELEASE
        1.6.8
        4.12
        1.6.6
        1.2.12
        8.0.15
        3.4.5
        1.3.0
        0.9.1.2
        5.1.10
        2.5
        2.2
        1.2
        1.3.1
        2.4
        1.2.47
        2.9.6

    

    
        
        
            org.apache.shiro
            shiro-core
            ${shiro.version}
        
        
            org.apache.shiro
            shiro-web
            ${shiro.version}
        
        
            org.apache.shiro
            shiro-cas
            ${shiro.version}
        
        
            org.apache.shiro
            shiro-spring
            ${shiro.version}
        
        
            org.apache.shiro
            shiro-ehcache
            ${shiro.version}
        
        
            org.apache.shiro
            shiro-quartz
            1.4.0
        


        
        
            org.springframework
            spring-aop
            ${spring.version}
        
        
            org.springframework
            spring-context
            ${spring.version}
        
        
            org.springframework
            spring-web
            ${spring.version}
        
        
            org.springframework
            spring-webmvc
            ${spring.version}
        
        
            org.springframework
            spring-test
            ${spring.version}
        
        
            org.springframework
            spring-tx
            ${spring.version}
        
        
            org.springframework
            spring-jdbc
            ${spring.version}
        
        
            org.aspectj
            aspectjweaver
            ${aspectj.version}
        
        
            org.aspectj
            aspectjrt
            ${aspectj.version}
        
        
        
            junit
            junit
            ${junit.version}
            test
        

        
        
            javax.servlet
            servlet-api
            ${servlet.version}
            provided
        
        
            javax.servlet.jsp
            jsp-api
            ${jsp.version}
            provided
        
        
            jstl
            jstl
            ${jstl.version}
         
        
            log4j
            log4j
            ${log4j.version}
        
        
            org.slf4j
            slf4j-api
            ${slf4j.version}
        
        
            org.slf4j
            slf4j-log4j12
            ${slf4j.version}
         

        
        
        
            mysql
            mysql-connector-java
            ${mysql.version}
        
        
            org.mybatis
            mybatis
            ${mybatis.version}
        
        
            org.mybatis
            mybatis-spring
            ${mybatis-spring.version}
        
        
            c3p0
            c3p0
            ${c3p0.version}
            jar
            compile
        
        
        
            com.github.pagehelper
            pagehelper
            ${pagehelper.version}
        

        
        
            commons-fileupload
            commons-fileupload
            ${commons-fileupload.version}
        
        
            commons-io
            commons-io
            ${commons-io.version}
        
        
        
        
            com.alibaba
            fastjson
            ${fastjson.version}
        
        
            com.fasterxml.jackson.core
            jackson-databind
            ${jackson.version}
        





    

    
        shiro_day2
        
            
                
                    maven-clean-plugin
                    3.1.0
                
                
                
                    maven-resources-plugin
                    3.0.2
                
                
                    maven-compiler-plugin
                    3.8.0
                
                
                    maven-surefire-plugin
                    2.22.1
                
                
                    maven-war-plugin
                    3.2.2
                
                
                    maven-install-plugin
                    2.5.2
                
                
                    maven-deploy-plugin
                    2.8.2
                
            
        
    


  • web.xml


  Archetype Created Web Application

  
  
    contextConfigLocation
    classpath:applicationContext.xml,
                  classpath:springShiro2.xml
    
  

  
  
    shiroFilter
    org.springframework.web.filter.DelegatingFilterProxy
    
      targetFilterLifecycle
      true
    
  
  
    shiroFilter
    /*
  

  
  
    characterEncodingFilter
    org.springframework.web.filter.CharacterEncodingFilter
    
      encoding
      UTF-8
    
  
  
    characterEncodingFilter
    /*
  

  
  
    org.springframework.web.context.ContextLoaderListener
  

  
  
    dispatcherServlet
    org.springframework.web.servlet.DispatcherServlet
    
      contextConfigLocation
      classpath:springMvc.xml
    
    1
    true
  
  
    dispatcherServlet
    /
  


  
    
    /index.jsp
  




  • applicationContext.xml



    
    
        
        
    



    
    

    
    
        
        
        
        

        
        
        
        
        
        
        
        
        
    


    
    
        
        
        
        
        
    

    
    
        
        
    

    
    
        
    

    
    

        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
    

    
    
        
        
    



  • springMvc.xml


    
    
        
        
    



    
    
        
        
    

    
    
    
    
    

    
    


  • mybatis_confing.xml




    
        
    



  • springShiro.xml





    


    
    
        
        
        
    

    
    
        
        
        
        

        
        
    


    
    
        
        
        
        
        
        
        
        
    

    
    
        
    

    
    
    
    
        
        
    
    
    
        
        
        
        
    


    
    

    
    

    
    
    
        
    

    
    
        
    

    
    
        
        
        
        
        
        
        
        
        
        

        
        
    

    
    
    
    




  • ehcache.xml


    

    

    



    



    



    



  • UserMapper.xml



    
        
        
        
        
        
        
    
      .....
      .....

你可能感兴趣的:(SSM-Shiro整合配置文件)