Submitted by heartin on Thu, 07/06/2017 - 13:37
Spring Framework provides support for transparently adding caching into an existing Spring application, with minimal impact on the code, similar to the transaction support. Spring also makes good use of annotations. This note is a summary of Spring’s documentation (see reference) on Caching, for quick reading and reference.
Submitted by heartin on Thu, 07/06/2017 - 13:35
A cache is a hardware or software component that stores data so future requests for that data can be served faster; the data stored in a cache might be the result of an earlier computation, or the duplicate of data stored elsewhere. A cache hit occurs when the requested data can be found in a cache, while a cache miss occurs when it cannot. Cache hits are served by reading data from the cache, which is faster than recomputing a result or reading from a slower data store. (Ref=Wikipedia)
Submitted by heartin on Sun, 10/23/2016 - 06:39
The devtools module adds tools that can make the application development easier. This includes automatically applying sensible development-time configuration for features such as caching, auto restarting after changes etc. To include devtools support, we need to add spring-boot-devtools dependency to the build file.
Submitted by heartin on Sun, 10/23/2016 - 04:37
YAML is a human friendly data serialization standard, which is mainly made for configuration files. YAML stands for YAML Ain't Markup Language. YAML can be used with many programming languages.
Submitted by heartin on Sun, 10/23/2016 - 04:36
For externalized configurations, Spring Boot supports file formats such as YAML and the .properties file.
While properties file works with @PropertySource annotation, YAML does not. While we can configure more than one Spring profiles per properties file, we can have any with YAML files.
@ConfigurationProperties
Pages