After a short introduction to configuration meta-data and covering the basics in my previous post called Pimp your config with configuration meta-data in Spring Boot, it is time to take a look at how to take this one step further and further customize the configuration. In this post, I plan to present deprecation of a configuration property and discuss various value providers allowing for one of the most comfortable application configuration I have ever experienced (long gone are the times of making typos in your configuration while trying to write out the fully qualified class name or resource path – let’s rejoice. 🙂
There were many updates released in the Spring Boot 1.3.0 but one of them stood out to me because I was not aware of this before and the state it got to makes it one really useful feature (unfortunately available only in Spring Boot as of writing this). I am talking about configuration meta-data and the processing related to this area of framework / application. As I will demonstrate further, there are several ways you can make use of it and the framework also allows you to leverage the benefits of automated processing. If you feel the need to take the matters into your own hands don’t worry – there is a way of manual entry as well if you want to use some of the features allowing you to precisely tailor your setup. Let’s talk configuration. Continue reading “Pimp your config with configuration meta-data in Spring Boot”
One of the biggest problems with pre-NIO.2 libraries was inefficient work with metadata of files and directories. Authors of NIO.2 library introduce concept of file attribute views to address this problem and also to solve couple of other issues that are dependent on this one. These problems included inability to create files with file attributes initialized at the creation time, inability to copy files with file attributes as well as problematic and inefficient way of handling file attributes. This concept was also adapted on file stores so the work with file system with regard to attributes and metadata feels seamless and consistent.