Obfuscation of Java maven project with spring framework

I am trying to obfuscate java spring project, but I am facing org.springframework.beans.factory.NoSuchBeanDefinitionException, regardless of the rule -dontobfuscate, I always face the this exception.

Is there any rule to work with spring projects ?

I have already tried different rules to keep the class or annotations but it does not work.

try using this config: Obfuscate Spring Boot 2 Web Applications with Proguard | by Isuru Jayakantha | Medium

1 Like