Home » Tag Archives: Spring (page 2)

Tag Archives: Spring

Microservices with Spring Boot, Axon CQRS/ES and Docker

docker-logo

In the last year or two, the pace of change in software architecture has rapidly advanced with new approaches like DevOps and Microservices becoming hot topics overnight. In this post, I want to introduce you to a project that I’ve been working on which combines two of the stand out architectural advances of the last few years: Microservices and the Command and Query Responsibility Separation ...

Read More »

JSON Web Tokens With Spring Cloud Microservices

spring-interview-questions-answers

At Keyhole, we have published several blogs about Microservices. We’ve talked about architectural patterns used in a Microservices environment such as service discovery and circuit breaker. We’ve even posted blogs on platforms and tools, such as the recent blog on Service Fabric. One important piece of the architecture that we have glossed over is the security around Microservices. Specifically, authentication ...

Read More »

Integrating Quartz with Spring

spring-interview-questions-answers

When it comes to scheduling jobs in a java application, Quartz is the first tool that comes into consideration. Quartz is job scheduler backed up by most popular RDBMSes. It is really convenient and gets integrated with spring quite easy. In order to create the quartz schema you have to download the quartz distribution and extract the folder located in quartz-2.2.3/docs/dbTables/ Choose ...

Read More »

Spring-Reactive samples

spring-interview-questions-answers

Spring-Reactive aims to bring reactive programming support to Spring based projects and this is expected to be available for the timelines of Spring 5. My intention here is to exercise some of the very basic signatures for REST endpoints with this model. Before I go ahead let me acknowledge that this entire sample is completely based on the samples which Sébastien Deleuze has ...

Read More »

Add Custom functionality to a Spring Data Repository

spring-interview-questions-answers

Spring Data is pretty convenient and speeds up development avoiding boilerplate code. However there are cases where annotation queries are not enough for the custom functionality you might want to achieve. Therefore spring data allows us to add custom methods to a Spring Data Repository. I will use the same project structure from a previous blog post. We have an entity called ...

Read More »

Spring boot and Spring data JPA integration

spring-interview-questions-answers

Nowadays spring and JPA integration has become a piece of cake thanks to Spring Boot and spring Data. I am gonna setup a postgresql server docker pull postgres #run the container docker run --name postgreslocal -e POSTGRES_PASSWORD=postgres -d postgres #get the ip docker inspect --format '{{ .NetworkSettings.IPAddress }}' postgreslocal #get the port docker inspect --format '{{ .NetworkSettings.Ports }}' postgreslocal Create ...

Read More »

Aspect Oriented Programming with Spring Boot

spring-interview-questions-answers

On a previous post I provided a simple example on how to achieve aspect orientation in spring by using a ProxyFactoryBean and implementing the MethodBeforeAdvice interface. On this example we will learn how to achieve aspect orientation by using Spring boot and Aspect4j annotations. Let’s start with our gradle file. group 'com.gkatzioura' version '1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'idea' ...

Read More »

Validating JWT with Spring Boot and Spring Security

spring-interview-questions-answers

For my current project I will have a REST API set up with Spring Boot (most likely running with BoxFuse). To be able to use the API endpoint the application will check that the incoming request has a valid JWT token provided earlier (by an API service that I trust). To implement this functionality I want to make use of ...

Read More »

Build a new Web Application from scratch using Spring boot, Thymeleaf, AngularJS – Part 3

spring-interview-questions-answers

In the previous blogs we built the landing page using Thymeleaf, Bower and Bootstrap and deployed it to Heroku. In this blog we will introduce some functionality with AngularJS for front end and Spring Boot Webservices at backend. We will begin with Login/Logout section. Lets begin with installing AngularJS in our application using bower. Introducing AngularJS $ bower install angular --save ...

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