In kubernetes (k8s) we can monitor our spring boot services and gain insights on it with Prometheus and Grafana. Continuing on from our previous post, Spring Data REST on Kubernetes. We add the following dependency to the vadal-data-rest service pom.xml.
The mapstruct-processor is required to generate the mapper implementation during build-time, while kapt is the Kotlin Annotation Processing Tool, and is used to reference generated code from Kotlin.
As with previous blogs we use a local docker desktop kubernetes set up and helm to install the capability.
Creating a spring boot application with Redis cache using Docker. Different ways to build a fault-tolerant Redis network. Sharding with a redis cluster. Replication with redis cluster.
Learn how to create Docker Image without Dockerfile in Spring Boot using Cloud Native Buildpacks. What is new in Spring Boot 2.3.
This article will talk about creating a Spring Boot microservices application, deploying it on an EC2 instance and then exposing the REST…
We'll take a look at the (very) brief background of not only what Reactive Relational Database Connectivity (R2DBC) is but why it exists, and then dive into the code to see how the new MariaDB R2DBC connector can be used to create fully reactive, Java Spring applications!
Learn how to inject a Map from a YAML file in Spring Boot.What is a YAML file? Learn how to inject YAML properties as a Map in Spring Boot.
Use Docker to build & deploy an Angular app! Includes how to combine Angular + Spring Boot into a JAR, dockerize it, and deploy to Knative + Cloud Foundry. Create an Angular + Spring Boot App. Create a Docker Container for Your Angular App. Deploy Spring Boot to Heroku
We’ll look at a sample approach using a very simple example as to how we could potentially utilize these tools to make the application developers life easy and create as well as maintain a database using a code first approach.
JWT vs Opaque Access Tokens: Use Both With Spring Boot. Often we talk about how to validate JSON Web Token (JWT) based access tokens; however, this is NOT part of the OAuth 2.0 specification. JWTs are so commonly used that Spring Security supported them before adding support for remotely validating tokens. Should I Validate Access Tokens Locally or Remote? Validate Access Tokens Locally and Remotely! Create a New Spring Boot Application. Configure Spring Security to Validate JWTs and Opaque Tokens. Better JWT Validation. Configure and Run Your OAuth 2.0 Application. Get a Token with the OIDC Debugger.
We have created the client applications with REST APIs and used Spring Boot Actuators to monitor the health of the applications, metrics for the REST APIs, Database Connections & Status, Tomcat and Hikari Connections, Cache Management, Scheduled Tasks, Environment of an application and much more.
This post provides a working example of using Spring Cloud Gateway to decrypt incoming request and encrypt outgoing response.
OpenAPI/Swagger UI & Codegen with Spring Boot. We are going to look at Swagger UI and Codegen. And step by step configured it with Spring Boot Application.
Learn how to use Caffeine cache with Spring Boot. Caffeine cache is a high-performance cache library for Java. Caffeine is a high performance Java 8 based caching library providing a near optimal hit rate. It provides an in-memory cache very similar to the Google Guava API. Spring Boot Cache starters auto-configured a CaffeineCacheManager if it finds the Caffeine in the classpath
Use Docker to build & deploy an Angular app! Includes how to combine Angular + Spring Boot into a JAR, dockerize it, and deploy to Knative + Cloud Foundry. Learn how to use Docker to create an image for your Angular app and deploy it to Heroku. Then, I’ll show how to combine Angular and Spring Boot into the same JAR artifact for deployment. You’ll learn how to Dockerize the combined apps using Jib and Cloud Native Buildpacks. Finally, I’ll show you how to deploy your Docker image to Heroku, Knative on Google Cloud, and Cloud Foundry.
Create a Self Signed Certificate using keytool and host your Spring Boot Application
Circular View Path Error - Learn about the Circular View Path error in a Spring Boot project. We'll look at how we get and resolve Circular View Path errors in a Spring MVC application.
Spring Boot 2.3.1 Available Now. I’m happy to announce that Spring Boot 2.3.1 has been released and is now available from repo.spring.io and Maven Central.
Hey folks, in this blog we are gonna build a server application, using Spring Boot, that will be used to upload and store files in it.