Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: [Spring Boot] Added typeConverter information

...

Code Block
xml
xml
camel.springboot.consumerTemplateCacheSize = 100
camel.springboot.producerTemplateCacheSize = 200

...

Auto-configured TypeConverter

Camel auto-configuration registers TypeConverter instance named typeConverter in the Spring context.

Code Block
languagejava
@Component
public class InvoiceProcessor {

  @Autowired
  TypeConverter typeConverter;

    public long parseInvoiceValue(Invoice invoice) {
      String invoiceValue = invoice.grossValue();
      return typeConverter.convertTo(Long.class, invoiceValue);
  }

}


Include Page
Endpoint See Also
Endpoint See Also