Handler for azure sample calls super in different method
If FooHandler extends AzureSpringBootRequestHandler apparently Azure cannot extract the generic types Foo and Bar.
This commit is contained in:
@@ -23,15 +23,15 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
|
||||
@SpringBootApplication
|
||||
class FooConfig {
|
||||
public class Config {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(Config.class, args);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Function<Foo, Bar> uppercase() {
|
||||
return value -> new Bar(value.getValue().toUpperCase());
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
SpringApplication.run(FooConfig.class, args);
|
||||
return foo -> new Bar(foo.getValue().toUpperCase());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user