本文介绍了Tomcat-请求的资源()不可用,文件mp3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想完成一个简单的HTML 5示例.

I just want to finish a simple HTML 5 example.

    <audio src="2.mp3" controls autoplay>
        Your browser does not support the audio element.
    </audio>

但是它不能完成,这是来自Tomcat的描述:

but it can't complete and this is the description from Tomcat:

"The requested resource (/DemoPlaying/2.mp3) is not available."

我的文件夹结构:

推荐答案

很明显,您要请求的URL上没有mp3文件.更正您的"src"以指向正确的网址.

It's obvious that your mp3 file is not available at the URL you're trying to request it. Correct your 'src' to point to the correct url.

这篇关于Tomcat-请求的资源()不可用,文件mp3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 15:53