Minor cleanup in samples and tools
- Cleanup in schema-registry samples (final variable). - Add instructions in tools/kafka/docker-compose to run a quick test using Kafka console scripts.
This commit is contained in:
@@ -35,7 +35,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
public class Producer1ApplicationKafka {
|
||||
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
|
||||
@Autowired
|
||||
private StreamBridge streamBridge;
|
||||
|
||||
@@ -41,7 +41,7 @@ import com.example.Sensor;
|
||||
@RestController
|
||||
public class Producer2ApplicationKafka {
|
||||
|
||||
private Random random = new Random();
|
||||
private final Random random = new Random();
|
||||
|
||||
@Autowired
|
||||
private StreamBridge streamBridge;
|
||||
|
||||
Reference in New Issue
Block a user