shrio反序列化分析

shiro550

环境搭建

https://codeload.github.com/apache/shiro/zip/shiro-root-1.2.4

配置pom.xml


    
        javax.servlet
        jstl
        runtime
    
    
        javax.servlet
        servlet-api
        provided
    
    
        org.slf4j
        slf4j-log4j12
        runtime
    
    
        log4j
        log4j
        runtime
    
    
        net.sourceforge.htmlunit
        htmlunit
        2.6
        test
    
    
        org.apache.shiro
        shiro-core
    
    
        org.apache.shiro
        shiro-web
    
    
        org.mortbay.jetty
        jetty
        ${jetty.version}
        test
    
    
        org.mortbay.jetty
        jsp-2.1-jetty
        ${jetty.version}
        test
    
    
        org.slf4j
        jcl-over-slf4j
        runtime
    
    
        jstl
        jstl
        1.2
    

可能出现的问题

无法解析插件 org.apache.maven.plugins:maven-clean-plugin:2.5

主要原理是因为maven默认用的是外网,会导致有些插件无法下载成功

解决方式:

将maven设置为国内镜像

修改maven3中的settings.xml文件

路径:xxxx\InteLiJ\plugins\maven\lib\maven3\conf

将标签的内容替换为


mirrorId
central
Human Readable Name 
http://repo1.maven.org/maven2/





alimaven
aliyun maven
http://central.maven.org/maven2
central





alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/repositories/central/
central





junit
junit Address/

你可能感兴趣的:(java,开发语言,安全)