Analysis of kafka controller
preface
In a kafka cluster, add or delete a service node or topic. How does kafka manage when a partition is added to a topic? Today we will analyze one of kafka's core components, controller
What is controller
Controller Broker (kafkacontroller) is a Kafka service. It runs on each Broker in the Kafka cluster, but only one can be active ...
Posted by doucie on Sat, 29 Jan 2022 00:54:22 +0100
spring mvc controller requestmapping parameter binding annotation rules and default rules
Binding: assign the information in the request to the method parameters according to the principle of name matching.
1. Request path variable @ PathVariable
Get the parameters from the request URI, excluding the query string, and? After the number.
@RestController
@RequestMapping("/user")
public class UserAction {
@GetMapping("/{id}")
...
Posted by PaTTeR on Fri, 07 Jan 2022 02:38:24 +0100