Home » Tag Archives: Spring Boot

Tag Archives: Spring Boot

Difference between @ContextConfiguration and @SpringApplicationConfiguration in Spring Boot Integration Test

spring-interview-questions-answers

Even though both @ContextConfiguration and @SpringApplicationConfiguration annotations are used along withSpringJUnit4ClassRunner to specify how to load the Spring application context, there is a subtle difference between them. Although @ContextConfiguration does a great job in loading application context it doesn’t take full advantage of Spring Boot features. Spring Boot applications are ultimately loaded by either SpringApplication ( in case of the ...

Read More »

Build a Web App with Spring Boot and Spring Security in 15 Minutes

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Developers know that securing web apps can be a pain. Doing it right is tough. The worst part is that “right” is a moving target. Security protocols ...

Read More »

Spring-Boot 2.1.x and overriding bean definition

spring-interview-questions-answers

I was recently migrating an application from Spring Boot 1.5.X to Spring Boot 2.X and saw an issue with overriding Spring Bean definitions. One of the configurations was along these lines in Kotlin: @Configuration class DynamoConfig { @Bean fun dynamoDbAsyncClient(dynamoProperties: DynamoProperties): DynamoDbAsyncClient { ... } @Bean fun dynampoDbSyncClient(dynamoProperties: DynamoProperties): DynamoDbClient { ... } } Now, for a test I wanted ...

Read More »

Bootiful Development with Spring Boot and Vue

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Vue is a web framework that’s gotten a lot of attention lately because it’s lean and mean. Its baseline framework cost is around 40K and is known ...

Read More »

Spring Boot Hibernate Tips

spring-interview-questions-answers

1. Overview Hibernate needs no introduction. It is the most popular ORM out there for Java. Similarly, Spring Boot is the most powerful, and easy to use framework out there for Java. This tutorial isn’t about Hibernate or Spring Boot, there are tons of them out there. We’ll look into some common errors that you may run into when using ...

Read More »

Build a Basic App with Spring Boot and JPA using PostgreSQL

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Every non-trivial application needs a way to save and update data: a resource server that is accessible via HTTP. Generally, this data must be secured. Java is ...

Read More »

Apache Camel 2.23 released

Yesterday Apache Camel 2.23 was released which most noteworthy new feature is support for Spring Boot 2.1, where we also improved the starter components to include more metadata and more optimized for the improved Spring Boot auto configuration. This release is mainly a big bug fix release and some other minor new features. One of these features is to allow for ...

Read More »

Build a Simple CRUD App with Spring Boot and Vue.js

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. In this tutorial, you’re going to build a complete CRUD web application using Vue.js for the client and Spring Boot as the resource server. You’ll also secure ...

Read More »

Running code on Spring Boot startup

spring-interview-questions-answers

Spring Boot does a lot of configuration automatically for us but sooner or later you’ll have to do some custom work. In this post, you will learn how to hook into the application bootstrap lifecycle and execute code on Spring Boot startup. So let’s see what the framework has to offer. 1. Execute method on bean initialization The simplest way ...

Read More »