Add tip for RestOperations or proxyTargetClass

fixes gh-66
This commit is contained in:
Spencer Gibb
2016-03-02 18:55:55 -07:00
parent a839006880
commit 0a58870114

View File

@@ -340,6 +340,8 @@ public class MyClass {
}
----
TIP: If you see errors like `java.lang.IllegalArgumentException: Can not set org.springframework.web.client.RestTemplate field com.my.app.Foo.restTemplate to com.sun.proxy.$Proxy89` try injecting `RestOperations` instead or setting `spring.aop.proxyTargetClass=true`.
[[ignore-network-interfaces]]
=== Ignore Network Interfaces