Fix various typos in the code & docs

This commit is contained in:
René Scheibe
2022-06-08 16:11:45 +02:00
committed by GitHub
parent cf742d3b86
commit 9f4428153c
29 changed files with 40 additions and 43 deletions

View File

@@ -32,9 +32,9 @@ public class MongoDbOutboundAdapterDemo {
* @param args
*/
public static void main(String[] args) throws Exception {
DemoUtils.prepareMongoFactory(); // will clean up MOngoDb
DemoUtils.prepareMongoFactory(); // will clean up MongoDB
new MongoDbOutboundAdapterDemo().runDefaultAdapter();
// new MongoDbOutboundAdapterDemo().runAdapterWithConveter();
// new MongoDbOutboundAdapterDemo().runAdapterWithConverter();
}
public void runDefaultAdapter() throws Exception {
@@ -43,13 +43,13 @@ public class MongoDbOutboundAdapterDemo {
ClassPathXmlApplicationContext context =
new ClassPathXmlApplicationContext("mongodb-out-config.xml", MongoDbOutboundAdapterDemo.class);
MessageChannel messageChannel = context.getBean("deafultAdapter", MessageChannel.class);
MessageChannel messageChannel = context.getBean("defaultAdapter", MessageChannel.class);
messageChannel.send(new GenericMessage<Person>(this.createPersonA()));
messageChannel.send(new GenericMessage<Person>(this.createPersonB()));
messageChannel.send(new GenericMessage<Person>(this.createPersonC()));
}
public void runAdapterWithConveter() throws Exception {
public void runAdapterWithConverter() throws Exception {
@SuppressWarnings("resource")
ClassPathXmlApplicationContext context =

View File

@@ -12,7 +12,7 @@
<mongo:db-factory id="mongoDbFactory" dbname="test"/>
<int-mongodb:outbound-channel-adapter id="deafultAdapter" />
<int-mongodb:outbound-channel-adapter id="defaultAdapter" />
<int-mongodb:outbound-channel-adapter id="adapterWithConverter" mongo-converter="stringConverter"/>