`
张洪财
  • 浏览: 275091 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ssh springside 混淆

    博客分类:
  • java
阅读更多

proguard 工具 。

 

配置文件:

 

-injars 'D:\develop\w\telematic2\Portal\dist\portalms.jar'
-outjars out.jar

-libraryjars 'C:\Program Files\Java\jre6\lib\rt.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\antlr-2.7.6.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aopalliance-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aspectjrt-1.6.9.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aspectjweaver-1.6.9.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\cglib-nodep-2.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-beanutils-1.8.3.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-collections-3.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-dbcp-1.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-fileupload-1.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-io-1.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-lang-2.5.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-logging-1.1.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-pool-1.5.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\displaytag-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\displaytag-export-poi-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\dom4j-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ehcache-1.6.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\freemarker-2.3.16.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\guava-r06.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\h2-1.2.142.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hamcrest-library-1.3RC0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-annotations-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-commons-annotations-3.2.0.Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-core-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-ehcache-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-jpa-2.0-api-1.0.0.Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\imaging-01012005.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\itext-1.3.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jackson-core-asl-1.6.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jackson-mapper-asl-1.6.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\javassist-3.12.1.GA.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcaptcha-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcaptcha-api-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcl104-over-slf4j-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jstl-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jta-1.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\junit-4.8.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\log4j-1.2.16.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\mail.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ognl-3.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ojdbc14.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\poi-3.2-FINAL.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\servlet-api.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-api-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-api-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-log4j12-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-log4j12-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-aop-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-asm-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-beans-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-context-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-context-support-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-core-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-expression-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-jdbc-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-orm-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-acl-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-config-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-core-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-taglibs-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-web-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-test-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-tx-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-web-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-webmvc-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\springside3-core-3.3.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\springside3-extension-3.3.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\standard-1.1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-convention-plugin-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-core-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-spring-plugin-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\xml-apis-1.0.b2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\xwork-core-2.2.1.jar'

-dontshrink
-dontoptimize
-printmapping out.map
-keeppackagenames
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod,*Annotation*
-keepparameternames


# Preserve the special static methods that are required in all enumeration
# classes.
-keepclassmembers class * extends java.lang.Enum {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

# entity
-keep class * extends IdEntity

# Keep - Servlets. Keep all extensions of javax.servlet.Servlet.
-keep public class * extends javax.servlet.Servlet

# Keep - Library. Keep all public and protected classes, fields, and methods.
-keep public class * {
    public protected <fields>;
    public protected <methods>;
}

# Also keep - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keepclassmembers enum  * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

# Also keep - Serialization code. Keep all fields and methods that are used for
# serialization.
-keepclassmembers class * extends java.io.Serializable {
    static final long serialVersionUID;
    static final java.io.ObjectStreamField[] serialPersistentFields;
    private void writeObject(java.io.ObjectOutputStream);
    private void readObject(java.io.ObjectInputStream);
    java.lang.Object writeReplace();
    java.lang.Object readResolve();
}

# Also keep - BeanInfo classes. Keep all implementations of java.beans.BeanInfo.
-keep class * extends java.beans.BeanInfo

# Also keep - Bean classes. Keep all specified classes, along with their getters
# and setters.
-keep class * {
    void set*(***);
    void set*(int,***);
    boolean is*();
    boolean is*(int);
    *** get*();
    *** get*(int);
}

# Keep names - Native method names. Keep all native class/method names.
-keepclasseswithmembers,allowshrinking class * {
    native <methods>;
}

# Keep names - _class method names. Keep all .class method names. This may be
# useful for libraries that will be obfuscated again with different obfuscators.
-keepclassmembers,allowshrinking class * {
    java.lang.Class class$(java.lang.String);
    java.lang.Class class$(java.lang.String,boolean);
}

 

注意:1、 混淆后需要用原来的bean覆盖混淆中的bean。因为bean的字段名必须不能变,否则一对多等映射就不能找到具体字段

        

      

分享到:
评论
1 楼 张洪财 2011-07-21  
实验成功                              

相关推荐

    springside3与传统ssh区别

    ### Springside3与传统SSH(Struts + Spring + Hibernate)的区别 #### 1. 数据库设计 在数据库设计方面,Springside3采用了一种更为现代化的方法,这体现在其对实体对象、DAO对象的设计上。它更加侧重于利用Java ...

    springside3.3.4 使用方法

    ### springside3.3.4使用方法与SSH整合详解 #### 一、Springside简介 Springside项目是基于Spring框架的一个应用架构示例,它提供了一套完整的开发模式来构建企业级Java Web应用程序。Springside 3.3.4版本作为一...

    Springside-core-4.1.0/Springside-core-4.1.0

    《SpringSide核心库4.1.0深度解析》 SpringSide是Java开发中的一款轻量级框架,它基于Spring框架,旨在简化企业级应用的开发流程。本文将深入探讨SpringSide-core-4.1.0的核心特性,以及其在实际项目中的应用。 一...

    springside-3.2.2源码

    《SpringSide 3.2.2 源码解析与技术深度探讨》 SpringSide 是一个基于 Spring Framework 的 Java 开发工具集,旨在简化 Spring 应用程序的开发过程,提供一套快速、现代且规范的开发实践。SpringSide 3.2.2 版本是...

    SpringSide4 参考手册

    SpringSide4参考手册是一份详尽的文档,涵盖了使用SpringSide4.0版本开发应用时可能会用到的各种技术组件和模块。SpringSide是一个开源的Java开发平台,它集成了Spring框架和大量实用的组件,以方便开发人员构建复杂...

    springside3.3完整版

    "ssh3.3"这个文件名暗示了SpringSide 3.3可能集成了Struts2、Hibernate和Spring,也就是常说的SSH框架。这三个框架的整合能够实现高效的MVC开发,Struts2处理请求和展示视图,Hibernate负责持久化操作,Spring则...

    springside开发全面讲解

    《springside开发全面讲解》是一份旨在帮助开发者深入了解并掌握springside框架的详尽教程。springside是一款基于Spring框架的轻量级开发工具集,它为Java开发提供了简洁、高效的解决方案,尤其适合中大型项目的开发...

    springside-core-4.2.2.GA(含关联的test.jar)

    pom.xml配置 ...mvn install:install-file -DgroupId=org.springside -DartifactId=springside-core -Dversion=4.2.2.GA -Dfile=./springside-core-4.2.2.GA.jar -Dpackaging=jar -DgeneratePom=true

    springside3.0.zip

    《SpringSide 3.0:Java企业开发的高效框架指南》 SpringSide 3.0 是一个基于Spring框架的开源项目,旨在为Java开发者提供一套高效、简洁的开发规范和工具集。它不仅包含了Spring的核心模块,还整合了其他优秀的...

    springside

    《SpringSide:全面解析与应用》 SpringSide项目是一个基于Java的开源软件开发框架,它以Spring Framework为核心,旨在提供一套简洁、规范的项目构建和开发实践。在深入理解SpringSide之前,我们首先需要了解Spring...

    有springside4.2.3-GA.jar 包

    《深入解析springside4.2.3-GA.jar:Java开发者的宝藏库》 在Java开发领域,SpringSide框架以其高效、灵活和强大的特性深受开发者喜爱。本文将围绕springside4.2.3-GA.jar这个核心组件,探讨其在Java应用中的重要...

    SpringSide3.3.4安装部署

    SpringSide3.3.4 安装部署详解 SpringSide3.3.4 安装部署是指在计算机上安装和部署 SpringSide3.3.4 软件的过程。在这个过程中,我们需要使用 Maven 工具来生成项目模板,安装 mini-web 应用程序,并配置相应的...

    springside-4.0.0.GA.zip

    《SpringSide 4.0.0.GA:JavaEE世界的春天之光》 SpringSide,一个以Spring Framework为核心,秉持Pragmatic编程理念的JavaEE应用参考实例,它旨在为开发者提供主流技术选型的示范,展示JavaEE世界中的最佳实践。这...

    springside.jar

    《springside.jar在Java应用中的使用详解》 在Java开发领域,springside.jar是一个备受推崇的开源项目,它为开发者提供了丰富的工具和最佳实践,以简化Spring框架的使用。本文将深入探讨springside.jar的核心功能,...

    springside的jar包

    springside是一个开源的Java开发工具集,它为Spring框架提供了额外的支持和便利,使得开发者在基于Spring构建项目时能够更加高效和规范。这个"springside4-4.1.0.GA"的jar包是Springside项目的4.1.0版本的发布,GA...

    springside4(showcase)

    《SpringSide 4:Spring MVC 实战展示》 在IT领域,SpringSide 4是一个备受推崇的开源项目,它是一个全面展示Spring框架及其生态系统的实战示例。标题"Springside4 (showcase)"暗示了这是一个以展示SpringSide 4...

    SpringSide文档.chm

    SpringSide文档.chm。

    springside-core-4.1.0.GA.jar

    《深入解析springside-core-4.1.0.GA.jar》 springside-core-4.1.0.GA.jar是一个重要的Java库,它在Java开发领域中扮演着核心角色,尤其对于那些使用Spring框架的项目。这个jar包不仅包含了springside-core-4.1.0....

    springside框架

    《SpringSide框架详解:整合Spring、Hibernate与Struts2的高效解决方案》 SpringSide框架,作为一款基于Java的开源企业级应用开发框架,是开发者们为了简化开发流程、提高开发效率而精心设计的。它巧妙地融合了...

    springside-core-4.2.2.GA相关jar包

    《SpringSide核心库4.2.2.GA详解》 SpringSide是一款基于Spring框架的开源项目,它旨在为Java开发者提供一个快速、整洁且高效的开发环境。SpringSide Core 4.2.2.GA是该项目的核心库,包含了丰富的功能和最佳实践,...

Global site tag (gtag.js) - Google Analytics