如果要在SpringBoot之中测试servelet需要配置,本人需要测试一下servlet之中直接输出到页面之中音频。 JavaWeb向浏览器返回一个音频流 然后参考在SpringBoot之中如何使用Servlet springboot servlet使用配置