Deploying Spring Boot Application in OpenShift.

This blog will show you, “How to deploy your Spring Boot Application in OpenShift environment with free of cost”. OpenShift is a cloud development Platform as a Service (PaaS) developed by Red Hat. It is an open source development platform, which enables the developers to develop and deploy their applications on cloud infrastructure. What not to expect So what not to expect out of this … Continue reading Deploying Spring Boot Application in OpenShift.

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

@DirtiesContext in Spring

@DirtiesContext is a test annotation which indicates that the  ApplicationContext associated with a test is dirty and should therefore be closed and removed from the context cache. Once the TestContext framework loads an  ApplicationContext  (or WebApplicationContext) for a test, that context is cached and reused for all subsequent tests that declare the same unique context configuration within the same test suite. For example, if TestClassA specifies {“app-config.xml”, “test-config.xml”} for the locations (or value) attribute of @ContextConfiguration, the … Continue reading @DirtiesContext in Spring