Home » Spring Boot » Page 11

Tag Archives: Spring Boot

Caching in Spring Boot with Spring Security

java-interview-questions-answers

In this post, I’d like to share a lesson learned by one of the teams at O&B. They were using Spring Boot with Spring Security. By default, anything that is protected by Spring Security is sent to the browser with the following HTTP header: Cache-Control: no-cache, no-store, max-age=0, must-revalidate Essentially, the response will never be cached by the browser. While ...

Read More »

Spring Boot Complete Example

java-interview-questions-answers

This post provides a complete example of using spring boot to develop a loosely coupled REST service. Using spring boot, we can develop production ready java application which will run independently, as stand alone application with minimal dependencies and less coupling with other applications. Most of the time, spring boot application will provide a cohesive service and the boundaries of ...

Read More »

How to Create Spring Boot Project in STS

java-interview-questions-answers

Hello Friends, In this tutorial, we will see step by step, how we can create a Spring Boot project in STS (Spring Tool Suite). Step 1: Download Spring tool suite, if you don’t have already from the following link for your respective operating system : https://spring.io/tools/sts/all Step 2 : Extract and Open Spring tool suite by click on its icon, which ...

Read More »

Build a Photo Gallery PWA with Spring Boot, JHipster, and React

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. At its core, React is just a UI toolkit, ala GWT, but it has a very healthy ecosystem around it that provides everything you need to build ...

Read More »

Apache Camel 2.22 Released with Spring Boot 2 support

Today we released the latest Apache Camel 2.22.0 release which is the first release to officially fully support Spring Boot 2. This is a major effort as the Spring Boot v1 to v2 upgrade for a big framework like Apache Camel took some effort – so many thanks to the Camel team and the contributions. The support for Spring Boot ...

Read More »

Spring Security with Spring Boot 2.0: Securing your endpoints

spring-interview-questions-answers

Up until now in our previous posts we had our endpoints and controllers secured using the default spring security configuration. When Spring Security is on the classpath, the auto-configuration secures all endpoints by default. When it comes to complex applications we need different security policies per endpoints. We need to configure which endpoints should be secured, what type of users ...

Read More »

Tracing a reactive flow – Using Spring Cloud Sleuth with Boot 2

spring-interview-questions-answers

Spring Cloud Sleuth which adds Spring instrumentation support on top of OpenZipkin Brave makes distributed tracing trivially simple for Spring Boot applications. This is a quick write up on what it takes to add support for distributed tracing using this excellent library. Consider two applications – a client application which uses an upstream service application, both using Spring WebFlux, the ...

Read More »

Spring Reactor Tutorial

spring-interview-questions-answers

In the world of RESTful services where a lot of work actually happens behind the scenes, we often have to do much of the processing in our application which doesn’t actually affect the response which needs to be sent to a real-world user. These business decisions can be taken reactively so that they do not have any impact to a ...

Read More »

Build a Spring Boot App with Secure Server-to-Server Communication via OAuth 2.0 and Okta

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. Most OAuth 2.0 guides are focused around the context of a user, i.e., login to an application using Google, Github, Okta, etc., then do something on behalf ...

Read More »