Azure / Azure/Azure-Spring-Apps

Azure Spring App no longer starts without snakeyaml dependency

未关闭
#49 1 条评论 0 个 reaction 已指派 1 人 已指派给 @yuwzho 在 GitHub 查看
Tracking
主要语言
没有语言数据
星标
9
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
We get an `IllegalStateException` during startup and the service fails to start, however the same code and config was able to start not so long ago.
This regression is probably caused by the recent addition of two configuration files which are automatically added by Azure to SPRING_CONFIG_ADDITIONAL_LOCATION environment variable (etc/azure-spring-cloud/context/azure-spring-apps.yml and /etc/azure-spring-cloud/context/azure-spring-apps-deployment.yml)

`java.lang.IllegalStateException: Attempted to load Config resource 'file [/etc/azure-spring-cloud/context/azure-spring-apps-deployment.yml]' via location 'file:/etc/azure-spring-cloud/context/azure-spring-apps-deployment.yml' but snakeyaml was not found on the classpath`

**To Reproduce**
Deploy a SpringBoot application without the org.yaml::snakeyaml dependency (i.e. by excluding it)

**Expected behavior**
A service does not require snakeyaml as dependency.

Could you not as an alternative define the configuration using good old properties files? Spring can process properties files without any additional dependencies.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。