Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Spring App no longer starts without snakeyaml dependency #49

Öffnen Sie
villaratio opened this issue Jul 4, 2023 · 1 comment
Öffnen Sie
Assignees
Labels

Kommentare

@villaratio
Copy link

villaratio commented Jul 4, 2023

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.

@yuwzho
Copy link

yuwzho commented Jul 14, 2023

We are changing it to properties file instead of yaml file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants