Azure / Azure/Azure-Spring-Apps

Azure Spring App no longer starts without snakeyaml dependency

Ouverte
#49 1 commentaire 0 réactions 1 personne assignée Assignée à @yuwzho Voir sur GitHub
Tracking
Langage dominant
Aucune donnée de langage
Étoiles
9
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

**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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.