Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

test spring cloud stream

@SpringBootApplication
@EnableBinding(Sink.class)
public class JdbcSink {

  @Bean
  @ServiceActivator(inputChannel = Sink.INPUT)
  public MessageHandler logHandler(DataSource dataSource) {
     return new JdbcMessageHandler(dataSource,
                                 "INSERT INTO foobar (value) VALUES (:payload)");
  }
}Copy
Comment

PREVIOUS NEXT
Code Example
Java :: ban vs sri 
Java :: pgzint install windows 10 
Java :: android autocompletetextview hashmap 
Java :: collapse recycler view on new item click 
Java :: what is a literal in java 
Java :: 1 2 1 3 2 1 4 3 2 1 3 2 1 2 1 1 java 
Java :: Selenium TestNG delay before actions 
Java :: spring mvc aop transaction management 
Java :: what is serialization and deserialization in rest assured 
Java :: java vererbung methoden 
Java :: concurrentskiplistset infinite loop in jdk 
Java :: Java’s generic programming does not apply to the primitive types. True or False? 
Java :: quick select method for kth smallest element in java 
Java :: hibernate getList of a table 
Java :: java package naming convention plural singular 
Java :: They say that they have to create an instance to their application. What does it mean? 
Java :: struct in java 
Java :: Recyclerview scramble after scrolling 
Java :: Java Insert Elements 
Java :: bukkit scheduler self cancelling task 
Java :: java classes and objects 
Java :: date to timestamp java 
Java :: java pair class 
Java :: calculate number of weeks between two dates 
Java :: java string start with substring 
Java :: java float 
Java :: ArrayIndexOutOfBoundsException 
Java :: iptc classification java code example 
Sql :: mysql disable foreign key checks 
Sql :: ADD COLOUNS CREATED AND UPDATED AT IN MYSQL 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =