配置改进
This commit is contained in:
@@ -15,7 +15,7 @@ public class ConsumerApplication {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Consumer<Date> receive() {
|
||||
public Consumer<Date> sink1() {
|
||||
return System.out::println;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,10 +3,15 @@ spring:
|
||||
host: 192.168.133.128
|
||||
username: dev-user
|
||||
password: devpassword
|
||||
|
||||
cloud:
|
||||
stream:
|
||||
bindings:
|
||||
input:
|
||||
destination: my-test-channel
|
||||
sink1-in-0:
|
||||
destination: test2
|
||||
function:
|
||||
definition: sink1
|
||||
|
||||
|
||||
server:
|
||||
port: 8081
|
||||
Reference in New Issue
Block a user