Home » Author Archives: Biju Kunjummen (page 3)

Author Archives: Biju Kunjummen

Spring WebApplicationInitializer and ApplicationContextInitializer confusion

spring-interview-questions-answers

These are two concepts that I mix up occasionally – a WebApplicationInitializer and an ApplicationContextInitializer, and wanted to describe each of them to clarify them for myself. I have previously blogged about WebApplicationInitializer here. It is relevant purely in a Servlet 3.0+ spec compliant servlet container and provides a hook to programmatically configure the servlet context. How does this help ...

Read More »

Scala and Java 8 type inference in higher order functions sample

scala-logo

One of the concepts mentioned in the Functional Programming in Scala is about the type inference in higher order functions in Scala and how it fails in certain situations and a workaround for the same. So consider a sample higher order function, purely for demonstration:               def filter[A](list: List[A], p: A => Boolean):List[A] = ...

Read More »

Customizing HttpMessageConverters with Spring Boot and Spring MVC

spring-interview-questions-answers

Exposing a REST based endpoint for a Spring Boot application or for that matter a straight Spring MVC application is straightforward, the following is a controller exposing an endpoint to create an entity based on the content POST’ed to it:                 @RestController @RequestMapping("/rest/hotels") public class RestHotelController { .... @RequestMapping(method=RequestMethod.POST) public Hotel create(@RequestBody @Valid ...

Read More »

Thymeleaf – fragments and angularjs router partial views

java-interview-questions-answers

One more of the many cool features of thymeleaf is the ability to render fragments of templates – I have found this to be an especially useful feature to use with AngularJs. AngularJS $routeProvider or AngularUI router can be configured to return partial views for different “paths”, using thymeleaf to return these partial views works really well. Consider a simple ...

Read More »

Spring Integration Java DSL sample

spring-interview-questions-answers

A new Java based DSL has now been introduced for Spring Integration which makes it possible to define the Spring Integration message flows using pure java based configuration instead of using the Spring XML based configuration. I tried the DSL for a sample Integration flow that I have – I call it the Rube Goldberg flow, for it follows a ...

Read More »

Spring Rest Controller with angularjs resource

spring-interview-questions-answers

Angularjs ngResource is an angularjs module for interacting with REST based services. I used it recently for a small project with Spring MVC and wanted to document a configuration that worked well for me. The controller is run of the mill, it supports CRUD operations on a Hotel entity and supports the following methods:           POST ...

Read More »

Spring Scala based sample bean configuration

spring-interview-questions-answers

I have been using Spring Scala for a toy project for the last few days and I have to say that it is a fantastic project, it simplifies Spring configuration even further when compared to the already simple configuration purely based on Spring Java Config. Let me demonstrate this by starting with the Cake Pattern based sample here:     ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close