Spring Boot HTTP Interface using @HttpExchange
Learn to use the Spring @HttpExchange to create and configure a declarative HTTP client interface (blocking/non-blocking) with examples.
Learn to use the Spring @HttpExchange to create and configure a declarative HTTP client interface (blocking/non-blocking) with examples.
Starting since Spring 6 and Spring Boot 3, the Spring Framework supports the “Problem Details for HTTP APIs” specification, RFC 7807. This Spring tutorial will guide you through this new enhancement in detail. 1. Problem Details Specification [RFC 7807] This RFC defines simple JSON and XML document formats that can …
This JHipster tutorial will familiarize you with this popular code generation platform and work with front-end and backend generated code.
Learn to remove or pop items from an array in TypeScript using pop(), shift(), splice(), filter() and delete operator with examples.
Learn to add or append or push new items into an array in TypeScript. Also, learn to append or merge an array into a specified array.
Learn to create new Date objects in TypeScript, and modify, compare and format them to custom and inbuilt locale-specific patterns.
Java Microbenchmark Harness (JMH) is a tool that allows measuring various code performance characteristics and identifying bottlenecks with precision – up to the method level.
Spring lookup method injection is the container’s ability to override methods on container-managed beans and return another container-managed bean.
Spring context supports singleton and prototype bean scopes along with four other scopes specific to the web context. The singleton is the default bean scope. A common problem arises when we want to inject a prototype-scoped bean into a singleton-scoped bean. In this case, as the singleton bean is initialized …
By default, SpringDoc automatically generates docs in JSON/YAML formats. When Swagger UI is enabled, it uses it to generate the docs in HTML format, too.
Java has 51 reserved words and 16 contextual keywords that cannot be used as identifiers in the code. Programmers should not use these keywords for other purposes.
Java IO is a collection of APIs targeted at reading and writing data from various sources to several targets. For example, we can read data from a file or over a network, write to a file or write a response back over the network. This page categorizes the various IO-related common tasks …
Spring helps write high-performing, easily testable, and reusable code and promotes programming best practices by applying dependency injection (DI).
Spring WebMVC (or Spring MVC) contains Spring’s model-view-controller (MVC) and REST Web Services implementation for web applications.
Spring batch is a lightweight, comprehensive framework designed for the development of robust batch processing applications. Learn with examples.
Learn Queue data structure and the Java Queue interface and implementations with practical examples such as LinkedList, PriorityQueue and ArrayDeque.
Learn about the JUnit XML report generation in legacy and new open test reporting formats and switching a specific version using the configuration parameters.
Learn about the new features and changes introduced in Spring 6 and Spring boot 3 such as baseline upgrade to Java 17 and removing all deprecated classes, methods and properties.
Java String class examples. Learn to create strings, methods, comparisons, formatting and various conversions with simple and easy to follow Java examples.
Learn to find a file by name in a given directory and its sub-directories in Java and search up to a configured depth of sub-directories with examples.
Learn to use Collectors.groupingBy() method to group and aggregate the Stream elements similar to ‘GROUP BY‘ clause in the SQL. Stream -> groupingBy() -> Map of elements after applying ‘group by’ operation 1. Collectors.groupingBy() Method 1.1. Syntax The groupingBy() method returns a Collector implementing a “GROUP BY” operation on Stream …
Learn to read a text file stored in AWS S3 bucket. We will learn to read a public file or non-public file using the access/secret keys.
Learn to configure log4j2 DynamicThresholdFilter and how to match thresholds and write the filtered messages using various combinations.
Learn to filter the logging messages or events using the Log4j2 MarkerFilter, create instances, and configure them in log4j2.xml.
Learned the root cause and solution of the Java Stream exception “IllegalStateException: stream has already been operated upon or closed”.
Flattening a nested list may seem hard at the beginning, but it’s not. It can be easily done using only plain Java, streams, or external libraries.
These articles will help you prepare for the next interview with more confidence. We have tried to put as much reasoning as possible in each question. Feel free to suggest more questions and guides. 1. Java Interview Questions 2. Spring Interview Questions 3. More Questions Happy Learning !!
Object-oriented programming (OOP) is a programming model that organizes software design around data or objects. Learn how Java supports OOP.
Java Streams have gained a lot of awareness and being able to iterate through with indices can be helpful. Learn a few ways with examples.
In this Spring boot tutorial, we will learn to create, order and register servlet filters in different ways including Filter interface, @WebFilter annotation and inbuilt filter bean classes. 1. Introduction In a web application, we must implement the javax.servlet.Filter interface (jakarta.servlet.Filter in Spring Boot 3) to create filters that can …
Maven is a build tool based on POM and is generally used for Java projects to automatically download the project dependencies in build time.
Learn to remove and update elements of a Collection using Stream.filter() and Strea,map() methods in Java with examples.
Learn to run JUnit tests using Maven Surefire Plugin. We will learn to run a single test, run only selected tests or run all the tests in the project.
Learn to convert a given Java object into a Map using different solutions including Jackson ObjectMapper, Gson and Java reflection.
Learn to fix the error ‘Java 8 date/time type not supported by default’ while serializing and deserializing Java 8 Date time classes using Jackson.
Learn to filter a Java HashMap by List of keys and collect the matching entries into a submap or matching values in a List.
TypeScript is an open-source programming language that was developed and maintained by Microsoft in 2012. TypeScript brings ‘types’ (or datatypes) to JavaScript making a strongly typed language. This page lists down all the TypeScript tutorials posted on this blog for easy navigation. 1. TypeScript Basics 2. TypeScript Types 3. TypeScript …
Learn to check if a given variable is a number or not. in JavaScript and TypeScript, using Number.isFinite() and typeof() functions.
Learn to round off a given floating point number to 2 decimal points in Java. As the best practice, always use the Decimal class with rounding mode set to HALF_EVEN.
Learn the shortcuts to format and indent the source codes in VSCode or Visual Studio Code. Also, learn to install the formatter plugin for a specific language.
Learn to print formatted output in Java using the format() and printf() methods. Learn to format strings, date-time, floats with precision.
Learn about Spring Boot Actuator and adding custom static and dynamic information to the /info endpoint using properties and InfoContributor.
This guide lists out a few of the most asked SQL interview questions and gives their answers such as JOINS, KEYWORDS, TRIGGERS and much more.
Learn about the Spring cloud modules that help in implementing 12-Factor design patterns in Spring cloud based microservices development.
This XmlAssert tutorial teaches to create different types of XML sources and assert two XML documents for identical, similar and node values using xpath.
In XmlUnit 2.x tutorial, learn to create different XML sources, normalizing with decorators and comparing for identical, similar and XPaths.
Learn to write test result assertions using the JSONassert with easy-to-understand examples. We can use this tutorial as JSONassert cookbook for quick reference.
Learn to ignore the null, empty and absent values during serialization with Jackson using the @JsonInclude as well as SerializationInclusion.
This docker tutorial explains the useful commands to remove a single or all running or stopped containers by id, name or date ranges.
Learn to create custom Jackson serializers and deserializers, register using the SimpleModule as well as @JsonSerialize and @JsonDeserialize.
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.