生产环境无法注入的问题

This commit is contained in:
孙小云 2025-04-02 17:12:56 +08:00
parent 5a569084b8
commit 95263673f9
3 changed files with 5 additions and 5 deletions

View File

@ -30,8 +30,8 @@ public class TaskService implements ITaskService{
@Value("${srs.targetPath}") @Value("${srs.targetPath}")
private String targetPath; private String targetPath;
@Value("${ffmpeg}") // @Value("${ffmpeg}")
private String ffmpeg; private String ffmpeg ="ffmpeg";
ScheduledExecutorService executor = Executors.newScheduledThreadPool(4); ScheduledExecutorService executor = Executors.newScheduledThreadPool(4);

View File

@ -30,8 +30,8 @@ public class ProcessService {
@Value("${srs.splitPath}") @Value("${srs.splitPath}")
private String splitPath; private String splitPath;
@Value("${ffmpeg}") // @Value("${ffmpeg}")
private String ffmpeg; private String ffmpeg = "ffmpeg";
@Value("${srs.targetPath}") @Value("${srs.targetPath}")
private String targetPath; private String targetPath;

View File

@ -2,7 +2,7 @@ spring.application.name=demo
server.port = 8989 server.port = 8989
srs.splitPath=/data/java/srs/stream_server/temp srs.splitPath=/data/java/srs/stream_server/temp
srs.targetPath=/data/java/srs/srs/trunk/objs/nginx/html srs.targetPath=/data/java/srs/srs/trunk/objs/nginx/html
ffmpeg=/data/ffmpeg/bin/ffmpeg ffmpeg=ffmpeg
recordPath=/data/java/srs/srs/trunk/objs/nginx/html/record recordPath=/data/java/srs/srs/trunk/objs/nginx/html/record
livedates=8 livedates=8