类之间解耦
This commit is contained in:
@@ -11,6 +11,6 @@ import org.springframework.messaging.SubscribableChannel;
|
||||
public interface MySink {
|
||||
String INPUT = "input";
|
||||
|
||||
@Input(Sink.INPUT)
|
||||
@Input(MySink.INPUT)
|
||||
SubscribableChannel input();
|
||||
}
|
||||
|
||||
@@ -10,6 +10,6 @@ import org.springframework.messaging.MessageChannel;
|
||||
public interface MySource {
|
||||
String OUTPUT = "output";
|
||||
|
||||
@Output("output")
|
||||
@Output(MySource.OUTPUT)
|
||||
MessageChannel output();
|
||||
}
|
||||
Reference in New Issue
Block a user