You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/10/23 11:52:00 UTC
[camel] branch master updated: Update type-converter.adoc (#4495)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 0b85449 Update type-converter.adoc (#4495)
0b85449 is described below
commit 0b85449056fe0901860afe3d4789a3aabe539ab8
Author: fg78nc <fg...@gmail.com>
AuthorDate: Fri Oct 23 07:51:32 2020 -0400
Update type-converter.adoc (#4495)
* Update type-converter.adoc
Corrected documentation for automatic TypeLoader discovery for Camel running on Spring Boot.
* Update type-converter.adoc
Corrected `@Converter` annotation element description (was : loader = true, current: generateLoader = true )
---
docs/user-manual/modules/ROOT/pages/type-converter.adoc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/user-manual/modules/ROOT/pages/type-converter.adoc b/docs/user-manual/modules/ROOT/pages/type-converter.adoc
index dbd1941..d7bd8fe 100644
--- a/docs/user-manual/modules/ROOT/pages/type-converter.adoc
+++ b/docs/user-manual/modules/ROOT/pages/type-converter.adoc
@@ -160,7 +160,7 @@ And in XML:
And in Spring Boot `application.properties`:
[source,properties]
----
-camel.loadTypeConverters=true
+camel.springboot.load-type-converters=true
----
Then Camel will discover discover Camel 2.x compatible type converters by
@@ -192,12 +192,12 @@ public class IOConverter {
=== Discovering Type Converters in the fast way
-To enable the fast type converter way, you should enable `loader = true`
+To enable the fast type converter way, you should enable `generateLoader = true`
on the class level annotation as shown:
[source,java]
----
-@Converter(loader = true)
+@Converter(generateLoader = true)
public class IOConverter {
@Converter
public static InputStream toInputStream(File file) throws FileNotFoundException {