Home » Java (page 10)

Java

How to deploy a Spring Boot Application on AWS EC2 instance

spring-interview-questions-answers

Hello Friends, In this tutorial,we will see how we can deploy a Spring Boot application over an AWS EC2 instance. Here are the steps we are going to perform. 1. Create a Spring Boot Project with Spring Boot Initialiser.2. Create a Rest end Point,which we can access after deployment3. Launch an EC2 instance4. Copy our Spring Boot project from our  ...

Read More »

Efficient enterprise testing — workflows & code quality (4/6)

java-interview-questions-answers

This part of the article will cover the impact of having effective workflows during our development sessions as well as how proper test code quality enables us to create maintainable tests, especially for complex projects. Development workflows & pipelines Programming is a flow activity and we developers should be interested in keeping our workflow efficient and the turnaround times low, ...

Read More »

Easy Spring Boot Deployment with AWS Elastic Beanstalk

spring-interview-questions-answers

Friends don’t let friends write user auth. Tired of managing your own users? Try Okta’s API and Java SDKs today. Authenticate, manage, and secure users in any application within minutes. Nearly all applications rely on authentication. Developers, and the companies that employ them, want to confirm who is making the request and are they who they say they are. And, ...

Read More »

Spring @Lazy Annotation

spring-interview-questions-answers

Introduction: The Spring framework, by default, loads and eagerly initializes all beans at the application startup itself. In our application, we might have some pretty resource-intensive beans. We’ll prefer to load such beans on a need basis. We can achieve this using the Spring @Lazy annotation. In this tutorial, we’ll learn how to use @Lazy annotation to lazily load our ...

Read More »

Efficient enterprise testing — integration tests (3/6)

java-interview-questions-answers

This part of the series will show how to verify our applications with code-level as well as system-level integration tests. (Code-level) integration tests The term integration test is sometimes used differently in different contexts. What I’m referring to, following the Wikipedia definition, are tests that verify the interaction of multiple components, here on a code level. Typically, integration tests make ...

Read More »

jClarity: Boost to Java on Azure

java-interview-questions-answers

In the new age of connected world public infrastructure, the biggest and the most essential two pieces have been the birth and the rise of Java and the OpenJDK. And hence, many companies devote their time and resources in building cutting edge technologies to ensure the industry, in general, has an abundance of quality rich yet free of cost OpenJDK ...

Read More »

Handling repeated code automatically

In this article I will describe how you can use Java::Geci generator Repeated to overcome the Java language shortage that generics cannot be primitive. The example is a suggested extension of the Apache Commons Lang library. Introduction When you copy-paste code you do something wrong. At least that is the perception. You have to create your code structure more generalized ...

Read More »

Spring @Order Annotation

spring-interview-questions-answers

Introduction: The Spring @Order annotation was first introduced in Spring 2.0. It was then used only to define the order among the AspectJ advices. Later in Spring 4.0, the implementation of this annotation was further improved a bit. Since then, it also supports ordering of Spring components or beans in a collection like a Java array or a List. This ...

Read More »

Spring Boot testing with JUnit 5

JUnit 5 (JUnit Jupiter) is around for quite some time already and it is equipped with tons of features. But surprisingly JUnit 5 it is not a default test library dependency when it comes to the Spring Boot Test Starter: it is still JUnit 4.12, released back in 2014. If you consider using JUnit 5 in you next Spring Boot ...

Read More »