开发者

having problem with proguard trying to obfuscate code that uses Spring

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜