Closed as not planned
Description
dependency
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.5.0</version> </parent> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency>
Main.java
package org.example; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.*; import java.util.Map; @SpringBootApplication public class Main { public static void main(String[] args) { SpringApplication.run(Main.class, args); } } @Controller @RequestMapping("/api") class RequestController { @PostMapping(path="/echo", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public ResponseEntity<String> processFormPostBodyAndParams( @RequestParam Map<String, String> body) { return new ResponseEntity<>("Body param map: " + body, HttpStatus.OK); } }
application.yml
server: port: 8088 http2: enabled: true
when use http1.1 it work
