Spring Controller testing with MockMvc post method
问题 I am trying to test a method of my controller in a Spring Boot application. This is a post endpoint, which gets an id in a request and it passes on this id to a service: @Slf4j @Controller public class AdministrationController { private final AdministrationService administrationService; @Autowired public AdministrationController(AdministrationService administrationService) { this.administrationService = administrationService; } @PostMapping("/administration") public @ResponseBody