通过 init.d 运行时,在 Spring Boot 中未获取 Conf 文件属性

Gau*_*wat 5 java spring spring-boot

我正在按照手册https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html 中的步骤将打包的 spring boot jar 作为 init.d 服务运行。一切都很好,但唯一的问题是它无法从 conf 文件中获取道具。在我的设置中,jar 文件名为 FooApp.jar,并且 conf 文件在同一目录路径中也被命名为 FooApp.conf。此外,conf 文件的内容如下

JAVA_OPTS=-Xmx1024M -Xms512m -Xdebug -Xrunjdwp:transport=dt_socket,address=9001,server=y,suspend=n -Denv=test
RUN_ARGS=--aws.vpc.name=fooVpc--aws.stack.name=foo --info.app.version=<VERSION> --spring.profiles.active=default,test,aws
Run Code Online (Sandbox Code Playgroud)

如果 conf 文件的格式正确,以及为什么当应用程序 spring boot 作为 linux 服务运行时,它不会从应用程序 conf 文件中获取配置,你能帮我吗?

谢谢