Deploy a Spring Boot App to AWS Elastic Beanstalk
Step by step, we will learn to deploy a Spring Boot application to AWS Elastic Beanstalk which uses RDS for persisting the records in the database.
Step by step, we will learn to deploy a Spring Boot application to AWS Elastic Beanstalk which uses RDS for persisting the records in the database.
Let us explore some of the most frequently asked Docker interview questions for devops and provide insights on how to approach them.
This Java tutorial discusses string templates in Java which is a new addition to the language in Java 21 as a preview feature.
By combining the portability and flexibility of Docker containers with AWS’s reliable and scalable infrastructure, we can take our Spring Boot applications to new heights. In this comprehensive guide, we’ll show exactly how to deploy a Dockerized Spring Boot app to AWS ECS from start to finish. 1. Introduction to …
Learn to use the test container library (KeycloakContainer) to start keycloak server as a docker container while unit testing with JUnit and Spring boot.
Learn to export an existing realm as a JSON file from the Keycloak server, and also to import a previously exported realm file with clients, policies and users.
Understand the root cause and learn to solve the error “Script upload is disabled” when we import a realm file into Keycloak server.
This Spring security tutorial discusses using Keycloak and Spring Security OAuth2 to implement token-based authentication in a spring boot app.
Learn the installation of the Keycloak authorization server as a docker container and different configurations for setting up the realm and testing the authorization token flow.
Learn to configure bulkhead and rate limiting using Resilience4j 2 in a Spring boot 3 application, and testing with Apache JMeter.
Learn the Java ConcurrentSkipListMap and the major differences between ConcurrentSkipListMap and other Map implementations.
Learn to implement authentication with a user login and logout functionality using Vue.js and Spring Boot Security using JWT tokens.
Spring boot, by default, configures Jackson for parsing objects to JSON. We can use Jackson’s XML module or JAXB to configure the XML support.
Spring @Sql executes DDL and DML SQL scripts and statements during the integration testing. @SqlGroup groups multiple @Sql statements.
Learn to execute SQL scripts to load data (e.g. import.sql, schema.sql or data.sql) during startup of a Spring boot application or tests.
Learn to fix the InaccessibleObjectException or “Failed making field ‘java.time.LocalDate#year’ accessible” type errors when serializing or deserializing the new Java 8 Date time classes.
Learn to integrate Spring Boot with MongoDB using the Spring Data MongoDB API and work with database using MongoTemplate and MongoRepository.
Learn the root cause and solution to fix the authentication error caused when connecting with MongoDB from a Spring boot application.
JWT tokens are commonly used in authentication and authorization processes to prove a user’s identity or grant access to specific protected resources.
JPAstreamer helps in fetching and processing the JPA or hibernate entities in the same way as we process the POJOs using Java 8 Stream API.
Learn to solve the Java compiler exception “Java class file has wrong version” while migrating an application to Spring 6 or Spring boot 3.
Learn to create an application from scratch using REST APIs created with Spring boot and the user interface created with Vue.js. We will build a simple employee management application with Create, Read, Update, and Delete (CRUD) functionality. 1. Application Overview In the application, the home screen will present a list …
Learn to solve the ‘JdbcSQLSyntaxErrorException schema not found’ error in a Spring boot app that uses the H2 database for CRUD operations.
Deploying a Spring Boot application to Kubernetes can seem daunting at first, but with the right tools and knowledge, it can be a straightforward process. In this post, we will walk through the steps needed to deploy a dockerized Spring Boot application to Kubernetes (Minikube). 1. Prerequisites Before we begin, …
Popular Python interview questions including keywords, syntax, datatypes, control flow, functions, object-oriented programming, and more.
Learn why we need a custom validation annotation and how to create, use and test such a custom validation annotation in Spring MVC.
In Java, the volatile variables should be utilized when all changes made to a variable by one thread are immediately visible to other threads.
In Java, local variables are thread-safe because they are stored on the stack memory, which is a unique space allocated to each thread when it is created.
Learn to convert an array of primitives (int, long, float, double) to a List in Java using the iteration, Streams and open-source libraries.
Learn to handle the checked exceptions thrown from the methods used in Stream operations in Java 8 using safe method extraction and Optional.
Learn about the available zone ids and zone offsets in Java 8 or later. These zone ids and offsets represent an instant/timestamp that is local to the specified timezone. 1. Using ZoneId and ZoneOffset Java 8 introduced new date and time APIs (JSR-310), including ZoneId and ZoneOffset. In Java, the …
Learn to generate random numbers (ints, floats) in a range using new methods added in Java 8 in Random, SecureRandom and ThreadLocalRandom.
Learn to convert a specified Instant (in UTC) to ZonedDateTime (at some zone), and ZonedDateTime to Instant with easy-to-follow Java examples.
Learn to convert a given Instant to LocalDateTime, LocalDate, or LocalTime instances in the current system timezone or a specified timezone in Java. 1. Difference between Instant and LocalDateTime An Instant is an instantaneous point on the time-line without any timezone information associated with it. Internally, it uses the system …
Learn to configure and use different DataSource in different environments (test, development, production etc.) using the Spring profile specific properties files, as well as Java configuration in a Spring boot application. 1. Introduction A production grade application is deployed and tested in different environments before finally released to the end-user. …
Learn to install the database services such as MySQL and PostgreSQL as docker containers and connect to them from Adminer or Spring boot app.
Learn to convert a specified array of strings to an array of int or Integer values using Java 8 Streams and learn to handle invalid values.
The JMH error “Unable to find the resource: /META-INF/BenchmarkList” is mostly observed when we do not configure the compiler plugin.
Learn to use the Python os.path and pathlib modules to check if a file exists at the specified path, and it is a regular file with examples.
Learn to perform integration testing using Testcontainers and JUnit 5 in a Spring boot application, including creating a @ServiceConnection.
Learn to mask a string or number with a mask character except the last 4 characters at the end, e.g., in account numbers and SSN.
Learn to implement the builder pattern style fluent API and copy constructors in Java records for creating immutable records with examples.
Learn to use Spring PartEvent API for streaming multipart requests to a webflux controller and handle the form parameters and file contents.
Since version 6, Spring supports creating an RSocket service as a Java interface with @RSocketExchange annotated methods for TCP exchanges.
Learn the RSocket protocol and implement communication models in Spring boot using reactive types such as Mono and Flux with examples.
Learn to configure ‘Delete’ action with RollingFileAppender and DefaultRolloverStrategy which will delete the old logs after a certain time.
Learn how to enable SQL logging in a Spring boot Data JPA application, print SQL statements and prepare statements with parameter values.
Comparing two Java lists with order ignored is a common requirement during JUnit tests where both lists come from different sources.
Learn to read or write a huge excel (.xlsx) files in Java using the fastexcel library, which is an excellent alternative for Apache POI.
Learn to configure MyBatis with Spring Boot 3 and configure @Mapper and DataSource. Also, learn mapper scanning with @MapperScan with example.
HowToDoInJava provides tutorials and how-to guides on Java and related technologies.
It also shares the best practices, algorithms & solutions and frequently asked interview questions.