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

Design Patterns

Resources https://www.youtube.com/watch?v=tv-_1er1mWI https://refactoring.guru/design-patterns/

July 19, 2022 · 3 words · Peter Dieleman

Binding @RequestParam through a POJO

Long List of Query params / request parameters http://dolszewski.com/spring/how-to-bind-requestparam-to-object/ “You also need to mark the POJO parameter in controller’s method with the @Valid annotation. This way you inform Spring that it should execute validation on the binding step.” Downsides: are not able to map query param to a nice variable name in case the ones in URL are shortened (q instead of query), unless you specify a different getter. Note In many cases, it makes much more sense to use @NotBlack instead @NotNull as it also covers the undesired empty string problem (a string with the length of zero)....

July 18, 2022 · 99 words · Peter Dieleman

Mvn vs. Gradle

Comparisons https://phauer.com/2018/moving-back-from-gradle-to-maven/ https://gradle.org/gradle-vs-maven-performance/ https://dzone.com/articles/gradle-vs-maven https://www.baeldung.com/ant-maven-gradle Further Gradle Info https://tomgregory.com/5-reasons-to-switch-to-the-gradle-kotlin-dsl/ https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch04.html Further Maven Info Essential Maven Plugins From https://javarevisited.blogspot.com/2016/08/top-10-maven-plugins-every-java-developer-know.html: maven-compiler-plugin: This is the most important maven plugin. You almost always use it unknowingly. This plugin compiles your Java code from the standard location Maven specifies e.g. /src/main/java and /src/main/resources. maven-surefire-plugin: The Maven Surefire plugin is the default plugin for running unit tests. You can also customize the behavior of this plugin by specifying the configuration in pom....

July 14, 2022 · 531 words · Peter Dieleman

General Programming Blogs & Posts

General https://dzone.com https://zetcode.com/ https://dev.to/ Specifics Falsehoods Programmers Believe About Names Java https://thorben-janssen.com/ https://vladmihalcea.com Spring https://piotrminkowski.com/ https://www.baeldung.com/ Blogs https://milanwittpohl.com/

July 13, 2022 · 18 words · Peter Dieleman

Windows Prompt / Terminal

Useful Commands dir env:

July 13, 2022 · 4 words · Peter Dieleman

Gradle & Java Versions

SourceCompatability vs. TargetCompatability https://stackoverflow.com/questions/16654951/gradle-sourcecompatibility-vs-targetcompatibility sourceCompatibility = JavaVersion.VERSION_11 Java Versions https://stackoverflow.com/questions/9170832/list-of-java-class-file-format-major-version-numbers gradle INVALID SOURCE RELEASE 17 https://stackoverflow.com/questions/70320448/spring-boot-gradle-build-invalid-source-release-11

July 7, 2022 · 16 words · Peter Dieleman

Docker Permissiosn Issue non-root users

https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue

July 5, 2022 · word · Peter Dieleman

Special Chars in REST API URIs

Sources https://stackoverflow.com/questions/39680082/can-i-prefix-with-dollar-sign-my-url-query-string-parameters-safely https://stackoverflow.com/questions/20050114/what-does-dollar-sign-do-in-url

May 19, 2022 · 3 words · Peter Dieleman

Avoiding NPE in filters

Sources https://stackoverflow.com/questions/32884195/filter-values-only-if-not-null-using-lambda-in-java8

May 16, 2022 · 2 words · Peter Dieleman