Adds Readme to GCP sample app
Also, fixing a bug in the default constructor of the invoker. Fixes: #478.
This commit is contained in:
@@ -46,13 +46,18 @@ public class FunctionInvoker
|
||||
|
||||
public FunctionInvoker() {
|
||||
super();
|
||||
init();
|
||||
}
|
||||
|
||||
public FunctionInvoker(Class<?> configurationClass) {
|
||||
super(configurationClass);
|
||||
init();
|
||||
}
|
||||
|
||||
private void init() {
|
||||
System.setProperty("spring.http.converters.preferred-json-mapper", "gson");
|
||||
Thread.currentThread() //TODO investigate if it is necessary
|
||||
.setContextClassLoader(FunctionInvoker.class.getClassLoader());
|
||||
.setContextClassLoader(FunctionInvoker.class.getClassLoader());
|
||||
initialize(null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user