Skip to content

Instantly share code, notes, and snippets.

View davidtimmerman's full-sized avatar

David Timmerman davidtimmerman

  • Axians
  • Belgium
View GitHub Profile
@davidtimmerman
davidtimmerman / RestProxyTemplate.java
Last active February 13, 2024 08:33
Spring RestTemplate with proxy settings
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;
import javax.annotation.PostConstruct;
@SupportedAnnotationTypes("me.guice.annotations.PropertySource")
@SupportedSourceVersion(SourceVersion.RELEASE_8)
public class PropertySourceProcessor extends AbstractProcessor {
public PropertySourceProcessor() {
super();
}
@Override