
With Spring Initializr, we start by creating a simple Spring Boot application.Ĭreate the package “” and create the HelloController class under this package with the following code.ġ 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 The ProGuard plugin is available at: Creating a Spring Boot application He is provided by a third party, but is also recognized by ProGuard.

Technically speaking, the ProGuard plugin is not an official product. After all, it is the way the ProGuard plugin is used that is the main focus of this section. If the command line approach is used, the proguard.bat file is used.Īll of the above ways are relatively simple and will not be described in detail here. Look at the style is pure Java client program. Double click the bin/proguardgui.bat file to start the ProGuard tool interface. How to use ProGuardĭownload the installation package, take proguard-7.1.1.zip for example, and unzip it to any directory. Therefore, using ProGuard not only enables code obfuscation, but also provides additional benefits in terms of code compression, optimization, etc.

This article describes how to use ProGuard’s plugin proguard-maven-plugin to obfuscate Java programs. Because Java code is very easy to decompile, Java code obfuscation is needed to protect Java source code well.
