Update kafka-component.adoc (#2474)

* Update kafka-component.adoc

* Improve the spring example

Add @PostConstruct method

* Improve Spring Example

using initMethod  and destroyMethod  @Bean(name = "offsetRepo", initMethod = "start", destroyMethod = "stop")
1 file changed