Home » Tag Archives: Spring (page 9)

Tag Archives: Spring

HOW-TO: Register components using @Conditional and Condition in Spring

spring-interview-questions-answers

@Profile annotation in Spring can be used on any Spring components (e.g. @Component, @Service, @Configuration etc.) that are candidates for auto-detection. @Profile annotation accepts a single profile or a set of profiles that must be active in order to make the annotated component eligible for auto-detection. For a given @Profile({"p1", "!p2"}), registration will occur if profile p1 is active or ...

Read More »

Spring Cloud support for Hystrix

spring-interview-questions-answers

Spring Cloud project provides comprehensive support for Netflix OSS Hystrix library. I have previously written about how to use the raw Hystrix library to wrap remote calls. Here I will be going over how Hystrix can be used with Spring Cloud Basics There is actually nothing much to it, the concepts just carry over with certain Spring boot specific enhancements. ...

Read More »

Enterprise Spring examples and integration tests

spring-interview-questions-answers

There was longer gap in my blog, because I was busy writing book Pivotal Certified Spring Enterprise Integration Specialist Exam – A Study Guide. This book is example heavy. Fortunately Apress agreed to open source all these examples. Therefore there is quite extensive collection of Spring examples available in this GitHub repository. Altogether  146 Spring examples with integration tests. Most of ...

Read More »

Introduction to Spring Integration Framework

spring-interview-questions-answers

As we are very much aware of the Spring Framework and JMS. In this article, we will get introduced to an enterprise integration framework known as Spring Integration. Spring Integration is an open source enterprise integration framework that enhances the capability of what Spring could have done alone. Built on Spring’s IoC, Spring Integration abstracts message sources and destinations, integrates ...

Read More »

Integrate MongoDB to your Spring project

mongodb-logo

This article shows how to integrate MongoDB to your spring project through annotation configuration. We will begin with our Gradle configuration. group 'com.gkatzioura.spring' version '1.0-SNAPSHOT' buildscript { repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.7.RELEASE") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' apply plugin: 'spring-boot' jar { baseName = 'mdb-spring-boot' version = '0.1.0' } repositories { mavenCentral() ...

Read More »

HOW-TO: Java 8 Date & Time with Thymeleaf and Spring Boot

spring-interview-questions-answers

If you happen to work with Spring Boot and Thymeleaf and you need to format Java 8 Date & Time objects in your views you may utilize thymeleaf-extras-java8time – Thymeleaf module for Java 8 Date & Time API. Adding thymeleaf-extras-java8time to an existing Maven or Gradle based Spring Boot project is as easy as adding a dependency and registering new ...

Read More »

Spring and Amazon Web Services

spring-interview-questions-answers

Amazon Web Services (or AWS) is nowadays one of the most common choices of the infrastructure and hardware providers to use and deploy to. Many Spring applications have tackled challenges of integrating the application infrastructure and the underlying layer. These in-house solutions differ in complexity and the degree of sophistication when it comes to the design and the actual functionality. ...

Read More »

Spring Boot Oauth2 Security

spring-interview-questions-answers

This post is an enhancement for my previous post which talks about how to secure your REST API using Spring security oauth2. In case if you missed it, here is the place to grab: http://blog.rajithdelantha.com/2015/09/secure-your-rest-api-with-spring.html Spring boot is one of the new inventions from Spring framework that makes developers’ lives easier when building large scale applications. Here is a good ...

Read More »

Simpler handling of asynchronous transaction bound events in Spring 4.2

spring-interview-questions-answers

Introduction As you probably already know (e.g. from my previous blog post) it is no longer needed to create a separate class implementing ApplicationListener with onApplicationEvent method to be able to react to application events (both from Spring Framework itself and our own domain events). Starting with Spring 4.2 the support for annotation-driven event listeners was added. It is enough ...

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:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials