Spring boot app as Mac app bundle
I’ve created OSX app bundle from my spring boot application using this plugin: https://github.com/crotwell/gradle-macappbundle
It’s super easy to do. However when I run the application it encounters strange error: duplicate key during when yaml processing tried to parse configs.
After couple of hours when I tried to to compare classpaths etc. I figured it out.
In my home directory, there was file named: “application.yaml”. Spring boot looks for several locations for config files. One of these location is “./”.
So, it seems that current directory is set to user’s home in case of OSX apps.















