Awaitility with Spring Boot

Sometimes we have to write asynchronous RESTfull APIs to have asynchronous relation with the caller. Most of the create, update or delete APIs should be written in asynchronous mode. Since, the caller is expecting the response in form of acknowledgement only. Something like, when you place your order in Amazon, what we get an acknowledgement from the vendor that your order request have been taken … Continue reading Awaitility with Spring Boot

Hello @JsonAutoDetect

@JsonAutoDetect class annotation can be used to define which kinds of Methods are to be detected by auto-detection. Auto-detection means using name conventions and/or signature templates to find methods to use for data binding. For example, so-called “getters” can be auto-detected by looking for public member methods that return a value, do not take argument, and have prefix “get” in their name. Let’s code: – … Continue reading Hello @JsonAutoDetect

@Conditional… in Spring Boot

While building Spring Boot app, we could fall in one use case where we need to load some of our beans conditionally i.e. Loading that bean based on another bean. Spring 4.0 has introduced a new annotation¬†@Conditional that allows us to use either pre-defined or custom conditions which will be applied to bean in application context. In this blog, we will introduce you with some … Continue reading @Conditional… in Spring Boot

@ConfigurationProperties in Spring Boot

There are number of ways you can externalize your configuration properties in application so that you can work in different environment. You can use properties files, YAML files, environment variables, and command-line arguments to externalize configuration. Property values can be injected directly into your beans by using the @Valueannotation but that is very tedious and cumbersome process , especially if you are working with multiple … Continue reading @ConfigurationProperties in Spring Boot