WebSpring 引導應用程序可執行文件 jar 文件是由bootJar任務構建的,因此通過jar添加主類信息也不起作用。. bootJar任務嘗試創建一個可執行的 jar,這需要一個 main() 方法。任務嘗試創建一個可執行的 jar,這需要一個 main() 方法。 Webproguard/examples/spring-boot/build.gradle Go to file Cannot retrieve contributors at this time 111 lines (85 sloc) 3.11 KB Raw Blame import proguard.gradle.ProGuardTask buildscript { repositories { mavenCentral () google () } dependencies { classpath 'com.guardsquare:proguard-gradle:7.3.0' } } plugins {
java - 從 Gradle 多模塊項目構建的 Jar 使用 Spring 啟動不起作用
WebSep 22, 2024 · For a Spring Boot application, this maven plugin below was recommended before in the community: GitHub - wvengen/proguard-maven-plugin: ProGuard Maven plugin that supports modularised ProGuard packages Regarding your previous issue; Your compiled class files are most likely inconsistent. Web我在我的proguard project.txt中添加了以下条目…仍然没有运气 -keep public class*扩展com.google.api.client.json.GenericJson google api客户端需要保留通过反射访问的泛型类型和@Key注释** -keepclassmembers类*{ @com.google.api.client.util.Key; } -KeepAttribute签名、运行时VisibleAnnotations ... tiaanc share
Obfuscate Spring Boot 2 Web Applications with Proguard
WebNov 13, 2024 · Using the ProGuard Plugin Creating a Spring Boot application Create a new HelloController code Modify the pom.xml configuration Verify that the ProGuard plugin is … WebJun 30, 2024 · at proguard.ProGuard.main(ProGuard.java:594) Caused by: java.lang.IllegalArgumentException: Can't find common super class of [org/springframework/boot/loader/archive/JarFileArchive] (with 1 known super classes) and [org/springframework/boot/loader/archive/ExplodedArchive] (with 1 known super classes) WebProGuard is a free shrinker, optimizer, obfuscator, and preverifier for Java bytecode: It detects and removes unused classes, fields, methods, and attributes. It optimizes bytecode and removes unused instructions. It renames the remaining classes, fields, and methods using short meaningless names. the laxey wheel