OPI Blog
Learn from experts in their fields

Browsing Tags: spring

Jul 18, 2017
Intro to Reactive Web in Spring 5
One of the biggest features planned for Spring 5, planned for release later this year, is the new Reactive Web extensions. For a long time Spring has had support for asynchronous web requests by suspending ...
Implement a GraphQL Endpoint in a Groovy App
GraphQL is on the rise as an alternative approach to traditional REST APIs. Created by Facebook, GraphQL provides a better way for the consumer of an API to ask for what they need and get ...
Jun 27, 2017
Exciting things in Spring Boot 2
I looked at the release notes for Spring Boot 2.0.0.M1 not expecting a lot of exciting changes but was surprised by some compelling things. There is the usual “deprecated classes are removed” and “Dependency X ...
Jun 19, 2017
Using MariaDB4j for a Spring Boot Embedded Database
MariaDB4j is an embedded Java wrapper for spinning up a MariaDB instance for local development or continuous integration testing purposes. Using an embedded (or in-memory) database is extremely beneficial when developing a Java application. Traditional ...
Spring Integration Testing with Spock Mocks
We all know it’s important to write tests for our code. Often we write unit tests and mock out the dependencies for the class under test. But eventually there is something we need to test that ...
Oct 13, 2016
Analyzing Kafka data streams with Spark
This blog describes a Spark Streaming application which consumes event data from a Kafka topic to provide continuous, near real-time processing and analysis of the event data stream. The demonstration application, written in Java 8 ...
Aug 16, 2016
Enhancements to Spring RestTemplate
Recently I had to choose a client to make REST requests from a Grails 2.5 application. I decided to give the Spring RestTemplate a try. It has worked very well, but was missing some functionality ...
Mapping JPA entities to external REST resources in spring-data-rest
Quickstart Clone the example project from github and run the following commands: ./gradlew bootRun curl http://localhost:8080/users curl http://localhost:8080/profiles   Great. What does it do? This example Spring Boot project, featuring spring-data-rest, demonstrates how you can ...
Jan 12, 2016
Using Groovy Based Spring Configuration
Introduction The Spring framework began with using XML as the only means for bean configuration. As Spring grew and more features were added to the framework, XML configuration got to be very verbose and it ...
Avoiding a common spring annotation configuration mistake
With annotated based configurations, I have seen this common mistake which will cause multiple instances of a singleton being created. When you have two beans and one bean needs the other, it is easy to ...