第二步是创建一个简单的服务以返回流音乐。

一个播放音乐的应用程序,主要功能是播放音乐。
我用弹簧靴创建。 首先,我将音乐mp3添加到项目中。
我将在spring项目中创建代码
春季初始化
编辑描述 start.spring.io
为了获得最佳视图,您可以使用github问题:
https://github.com/marcelosv/spotify-study-plan-b/issues/2
Github项目:
https://github.com/marcelosv/spotify-study-plan-b
这是我的测试单位。

https://github.com/marcelosv/spotify-study-plan-b/blob/master/spotify-play-api/src/test/java/com/marcelsouzav/spotify/customer/save/gateway/http/ListenAPITest。爪哇
这是我的验证码。 代码很简单。 我的目标是得到音乐来演奏。
但是API响应流非常重要。

https://github.com/marcelosv/spotify-study-plan-b/blob/master/spotify-play-api/src/main/java/com/marcelsouzav/spotify/customer/save/gateway/http/ListenAPI。爪哇
我将文件“ mp3 / 01-rappa.mp3”保存在资源中。
为了测试,我使用了VLC。
