Add Message and MessageConverter to the list of classes loaded by deployer

This commit is contained in:
Oleg Zhurakousky
2020-03-02 15:14:48 +01:00
parent df32fd6954
commit 202d617edd
2 changed files with 13 additions and 3 deletions

View File

@@ -162,9 +162,13 @@ class FunctionArchiveDeployer extends JarLauncher {
private boolean shouldLoadViaDeployerLoader(String name) {
return name.startsWith("org.reactivestreams")
|| name.startsWith("reactor.");
|| name.startsWith("reactor.")
|| name.startsWith("org.springframework.messaging.Message")
|| name.startsWith("org.springframework.messaging.converter.MessageConverter");
}
private String discoverFunctionClassName(FunctionDeployerProperties functionProperties) {
try {
return StringUtils.hasText(functionProperties.getFunctionClass())