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.

Spring Testing Annotations

The Spring Framework provides the following set of Spring-specific annotations that you can use in your unit and integration tests in conjunction with the TestContext framework. Spring’s testing annotations include the following: @BootstrapWith @ContextConfiguration @WebAppConfiguration @ContextHierarchy @ActiveProfiles @TestPropertySource @DirtiesContext @TestExecutionListeners @Commit @Rollback @BeforeTransaction @AfterTransaction @Sql @SqlConfig @SqlGroup @BootstrapWith @BootstrapWith is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped. … Continue reading Spring Testing Annotations

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