Spring Properties Cleaner is a Maven plugin that automatically cleans up Spring application properties files by removing duplicates, standardizing formatting, sorting keys, and extracting common properties across multiple profile-specific files. The plugin can be configured to detect issues during builds, sort properties in clustered or alphabetical order, inline prefixes for better commonality extraction, and manage vertical whitespace. It supports three extraction modes (full, consistent, multiple) for promoting properties to a common application.properties file, helping maintain cleaner and more organized configuration files in Spring projects.

8m read timeFrom feeds.feedblitz.com
Post cover image
Table of contents
1. Overview2. Example3. Adding Spring Properties Cleaner to Our Build4. Fixing Duplicates and Formatting5. Sorting Our Properties6. Inlining Prefixes7. Extracting to the Common Properties8. Cleaning Vertical Whitespace9. Conclusion

Sort: