Commiting .idea folder to repository

How to share config between developers? Q: Can we check in (parts of) the .idea folder as in VS Code? https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 All files under the .idea directory in the project root except the items that store user-specific settings: workspace.xml usage.statistics.xml shelf directory All the .iml module files (can be located in different module directories) -> applies to IntelliJ IDEA https://www.jetbrains.com/help/idea/creating-and-managing-projects.html#share-project-through-vcs SO says https://stackoverflow.com/questions/43198273/which-files-in-idea-folder-should-be-tracked-by-git?r=SearchResults&s=1%7C91.0115 Jetbrains official gitignore https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore But but I just want to set required plugins for the whole team https://www....

July 28, 2022 · 98 words · Peter Dieleman

Switching Spring Boot Application.yml properties from IntelliJ

Use: --spring.config.name=myproject, where myproject is the name of the *.yml or *.properties file that is stored under the default /config directory. The extension is not required. https://docs.spring.io/spring-boot/docs/2.1.13.RELEASE/reference/html/boot-features-external-config.html Further Documentation https://www.baeldung.com/spring-yaml https://baeldung-cn.com/spring-yaml-vs-properties https://docs.spring.io/spring-boot/docs/1.0.1.RELEASE/reference/html/howto-properties-and-configuration.html https://docs.spring.io/spring-boot/docs/1.0.1.RELEASE/reference/html/howto-properties-and-configuration.html#howto-change-configuration-depending-on-the-environment need: spring.config.activate.on-profile: “profile_name” example: spring: # default config without profile name . . . --- spring: config: activate: on-profile: "profile name" In conjunction with: ./gradlew run --args='--spring.profiles.active=profile_name' Can make this even more complicated when activating multiple profiles at once with overlapping properties, in that case the precedence order of profiles needs to be defined....

March 28, 2022 · 107 words · Peter Dieleman