Home » Spring Boot » Page 20

Tag Archives: Spring Boot

Get any image metadata with Spring Boot and Docker

This is the second part of a series of three articles, but I decided to condensate in two to give space to another article. The first part is available on this website at https://www.javaadvent.com/2017/12/microservices-architecture.html. In this part we’re going to develop a Microservice that reads metadata from an image as JSON or XML. I’m using Docker and Java (check part 1 if ...

Read More »

Spring Boot as a Windows Service in 5 minutes

java-interview-questions-answers

I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I’d previously written about using procrun – Java Programs as Windows Services, but winsw is much easier Getting Started There is a Section 59 of the Spring Boot documentation is about Installing Spring Boot applications, and points you ...

Read More »

Using Micrometer with Spring Boot 2

spring-interview-questions-answers

This is a very quick introduction to using the excellent Micrometer library to instrument a Spring Boot 2 based application and recording the metrics in Prometheus Introduction Micrometer provides a Java based facade over the client libraries that the different monitoring tools provide. As an example consider Prometheus, if I were to integrate my Java application with Prometheus, I would have used ...

Read More »

AJAX with CKEditor in Spring Boot

java-interview-questions-answers

1. Overview In this article, we will cover how to use CKEditor with Spring Boot. In this tutorial, we will be importing an XML document with numerous data, program the ability to load a set of data to the CKEditor instance with a GET request, and do a POST request to save the CKEditor’s data. Technologies we will be using include ...

Read More »

Spring Boot web application with Gradle

1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to Gradle Setup Gradle Official Website 2. Creating Demo Application Now that we ready with the plugin installed, create a new Gradle project as shown below –     Clicking on Next, specify ...

Read More »

Using Google reCaptcha with Spring Boot application

spring-interview-questions-answers

Introduction reCaptcha by Google is a library used to prevent bots from submitting data to your public forms or accessing your public data. In this post, we will look at how to integrate reCaptcha with a Spring Boot based web application Setting up reCaptcha You should create an API key from admin panel. You have to create a sample app ...

Read More »

Raw performance numbers – Spring Boot 2 Webflux vs Spring Boot 1

java-interview-questions-answers

My set-up for the performance test is the following: The sample applications expose an endpoint(/passthrough/message) which in-turn calls a downstream service. The request message to the endpoint looks something like this: { "id": "1", "payload": "sample payload", "delay": 3000 } The downstream service would delay based on the “delay” attribute in the message (in milliseconds).   Spring Boot 1 Application ...

Read More »

Secure Spring Boot REST API using Basic Authentication

spring-interview-questions-answers

This is the third post of my Spring Boot Blog post series. In the very first post, I talked about my experience with creating RESTFul Services using Spring Boot. Then I have expanded the sample to integrate with Swagger documentation. In this post, I am going to expand above sample with security aspect. What is API Security API Security is a ...

Read More »