解决SpringBoot HttpServletRequest getInputStream 不能读取出POST过来的参数问题

原代码

@SpringBootApplication
public class HelloworldApplication {

	public static void main(String[] args) {
		SpringApplication.run(HelloworldApplication.class, args);
	}

}

添加 

@EnableWebMvc 注解
@SpringBootApplication
@EnableWebMvc
public class HelloworldApplication {

	public static void main(String[] args) {
		SpringApplication.run(HelloworldApplication.class, args);
	}

}

问题解决

发布了161 篇原创文章 · 获赞 39 · 访问量 36万+

猜你喜欢

转载自blog.csdn.net/hknaruto/article/details/97373550