Sometimes we have to keep some of the configurations code out side of our application just to make sure the changes in those config wont make us to re-deploy our whole application again and again. There could be number of ways to achieve the same but in this tutorial, we are going to use Spring’s cloud config way. Even in Spring cloud config the end … Continue reading Spring Cloud Config
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.
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
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
@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