feat(music): 添加音乐时长获取功能

- 在 FileService接口中添加 getMusicDuration 方法- 在 FileServiceImpl 类中实现音乐时长获取逻辑
- 在 MusicServiceImpl 中使用该功能来设置音乐时长
- 移除 application.properties 中的注释内容
- 添加 jaudiotagger 依赖用于获取音乐文件信息
This commit is contained in:
ikmkj
2025-07-26 09:40:17 +08:00
parent ea48c39560
commit 4deaf59123
5 changed files with 55 additions and 33 deletions

View File

@@ -1,26 +0,0 @@
#spring.application.name=music-houduan
#server.port=8085
#
#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/music_db?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai
#spring.datasource.username=root
#spring.datasource.password=123456
#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
#
#spring.jpa.hibernate.ddl-auto=update
#spring.jpa.show-sql=true
#
#spring.data.redis.host=127.0.0.1
#spring.data.redis.port=6379
#spring.data.redis.password=123456
#
#sa-token.token-name=satoken
#sa-token.timeout=2592000
#sa-token.is-concurrent=true
#sa-token.is-share=true
#sa-token.token-style=uuid
#
## 文件上传配置
#file.upload-path=./upload/
#project.root-path=.
#file.access-path=/upload/
#file.allowed-types=jpg,jpeg,png,gif,mp3,wav,lrc,txt