支持local协议

This commit is contained in:
liujq 2022-11-11 10:53:37 +08:00
parent a219e6414e
commit 95ac6b7af3
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package org.jetlinks.community.protocol.configuration;
import org.jetlinks.community.protocol.*;
import org.jetlinks.community.protocol.local.LocalProtocolSupportLoader;
import org.jetlinks.core.ProtocolSupport;
import org.jetlinks.core.ProtocolSupports;
import org.jetlinks.core.cluster.ClusterManager;
@ -85,6 +86,9 @@ public class ProtocolAutoConfiguration {
return protocolSupports;
}
@Bean
@Profile("dev")
public LocalProtocolSupportLoader localProtocolSupportLoader(ServiceContext context) {
return new LocalProtocolSupportLoader(context);
}
}