开发者

having problem with proguard trying to obfuscate code that uses Spring

开发者 https://www.devze.com 2022-12-12 04:58 出处:网络
My project uses spring for IoC. After obfuscation the application context fails to find the bean since it\'s class name has been changed. I tried to use -adaptresourcefilecontents

My project uses spring for IoC. After obfuscation the application context fails to find the bean since it's class name has been changed. I tried to use -adaptresourcefilecontents option to get context.xml fi开发者_运维百科le be updated according to the class name, but it didn't work: the file wasn't changed. Any ideas?


Try to add file filter, I don't know if proguard looks at xml file as well.

Also, the documentation mentions changing only class names. Since Spring injections usually work on properties you will have a problem identifying the right setters.

0

精彩评论

暂无评论...
验证码 换一张
取 消