Proguard를 사용하여 여러 개의 @Autowired 필드가있는 라이브러리를 난독 화합니다. obfuscator는 클래스 필드의 이름을 바꿉니다 (클래스의 private/internal이기 때문에). 그래서 bean이 인스턴스화에 실패했습니다.Proguard를 Spring을 사용하는 라이브러리와 함께 사용 @Autowired 이름으로
은 사전 난독 화 :
@Service
public class LicenseServiceImpl implements LicenseService {
@Autowired(required = false)
LicenseSessionStore licenseSessionStore;
@Autowired(required = false)
LicenseStore licenseStore;
...
}
후 난처 :
@Service
public class LicenseServiceImpl implements LicenseService {
@Autowired(required=false)
LicenseSessionStore a;
@Autowired(required=false)
LicenseStore b;
...
}
지금이 특정 필드를 autowire되지 수 있도록하지만,하는 방법은 많은 가능성이있는 I이었다 찾기를 바라고 있었는지 Proguard에게 중요한 Spring-isms (@Autowired 등)로 주석이 첨부 된 내부 필드를 난독 화하지 않도록 지시하는 방법.
누구나 일반적으로 어떻게 할 수 있습니까?
그랜트