Azure / Azure/Azure-Spring-Apps

Azure Spring App no longer starts without snakeyaml dependency

オープン
#49 コメント 1 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。