Home » Tag Archives: Spring (page 4)

Tag Archives: Spring

Content Negotiation in Spring Framework

spring-interview-questions-answers

1. Introduction With what we had done with BeanNameViewResolver, is that we just had created multiple bean views in Spring context to generate the expected output. Spring soon introduced the Content Negotiation strategy, where we can use the traditional [email protected] HTTP message converters, to return desired outputs in JSON or XML, along with some flexibility and dynamicity it provides with the configuration. Often ...

Read More »

Thymeleaf 3 – Get Started Quickly with Thymeleaf 3 and Spring MVC

spring-interview-questions-answers

Thymeleaf 3 release arrived. The new version brings plenty of new features like HTML5 support as well as Text templates support with no markup – [# th:utext="${thymeleaf.version}" /] , improved inline capabilities – <p>Thymeleaf [[${thymeleaf.version}]] is great!</p>, performence improvements and much more. The easiest way the get starter with Thymeleaf 3 and Spring MVC is by using Spring MVC 4 ...

Read More »

Understanding Transactional annotation in Spring

spring-interview-questions-answers

1. Introduction Spring provides support for both programmatic and declarative transactions . 1.1 Programmatic Transactions With programmatic transactions, transaction management code needs to be explicitly written so as to commit when everything is successful and rolling back if anything goes wrong. The transaction management code is tightly bound to the business logic in this case. 1.2 Declarative Transactions Declarative transactions ...

Read More »

Spring Boot and Database initialization

spring-interview-questions-answers

Spring boot is hands down a great framework, saving the developer a lot of time and energy when developing a spring application. One of its great features is database initialization. You can use spring boot in order to initialize your sql database. We will start with the gradle file group 'com.gkatzioura' version '1.0-SNAPSHOT' apply plugin: 'java' sourceCompatibility = 1.5 buildscript { repositories ...

Read More »

Laziness at extreme: developing JAX-RS services with Spring Boot

spring-interview-questions-answers

I think it would be fair to state that we, as software developers, are always looking for the ways to write less code which does more stuff, automagically or not. With this regards, Spring Boot project, proud member of the Spring portfolio, disrupted the traditional approaches, dramatically speeding up and simplifying Spring-based applications development. There is a lot to be ...

Read More »

Scatter-Gather using Spring Reactor Core

spring-interview-questions-answers

I have a good working experience in using the Netflix Rx-Java libraries and have previously blogged about using Rx-Java and Java 8 CompletableFuture for a scatter-gather kind of problems. Here I want to explore applying the same pattern using the Spring Reactor Core library. tldr – If you are familiar with Netflix Rx-Java, you already know Spring Reactor Core, the API’s map beautifully ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns