Context#pathParam("name")
method return the value mapped to this path parameter.
Examplejavalin.get("/hello/{name}", (ctx) -> {
String name = ctx.pathParam("name");
ctx.result("Hello… Read More
Context#formParamMap()
method read all the form parameters as a map.
ExampleMapString, ListString>> formParamsMap = ctx.formParamMap();
Find the
below working ap… Read More
TL;DR: Explore the latest features in C# 13! From enhanced params collections to modernized thread synchronization, discover how these updates can boost your coding efficiency and producti… Read More
1.0 Overview
We will discuss the differences between a Shallow and Deep copy of a Java Object in this article.
2.0 Shallow Copy of an Object
For an example let’s consider the… Read More
The Microsoft Graph API is a powerful tool for accessing a wide range of Microsoft 365 services, such as Outlook, OneDrive, and SharePoint. However, when working with this API, you might enc… Read More
A popular general-purpose programming language for developing systems and applications is C. It is strong and versatile. C is a cornerstone programming language for many other languages and… Read More
Circuit
Breaker is a design pattern, it helps to prevent cascading failures and enables
the application to handle errors gracefully.
Cascading
failure
Casc… Read More
Using ctx.formParamAsClass("name",
String.class).getOrDefault("no_name"), we can assign default values to
the missing parameters.
ExampleString name = ctx.formParamAsClass("name", String.c… Read More
Have you ever spent hours debugging a piece of code only to realize that the real problem was how it was structured in the first place? Or found yourself frustrated with a codebase that&rsqu… Read More
Hace no demasiado, mientras analizábamos la posibilidad de que Blazor acabara en algún momento sustituyendo a MVC como tecnología "por defecto" para el desarrollo de apl… Read More
Context#uploadedFileMap
Gets a map of all uploaded files as a map where the key is the name of the
parameter the file was uploaded as and the value is the list of files uploaded
under that p… Read More
Context.uploadedFiles()
method return the uploaded files as a list.
ExampleList uploadedFiles = ctx.uploadedFiles();Find the
below working application.
Step 1:
Create new maven
p… Read More
TL;DR: Learn to bind SQLite data to the Syncfusion WinUI DataGrid, perform CRUD operations, and reflect these changes within the Grid. Key steps include setting up the SQLite connection, d… Read More
Using context.uploadedFiles("name")
method, we can read all the uploaded files by given name.
Example
List
uploadedFiles = ctx.uploadedFiles("myFile");
Find the
below working ap… Read More
The link in an HTML object that enables users to migrate from one web page to another when it is click on it. It means to navigate between different webpage on the internet. A broken link wi… Read More
This post is a continuation of my previous one, where
I explained how to execute a Groovy Script in Java. In this post, I will
demonstrate how to build a Spring Boot application that stores… Read More
Using
Context.bodyValidator() method, we can validate the request payload.
ExampleEmployeeRequestDto employeeRequestDto = ctx.bodyValidator(EmployeeRequestDto.class)
.check(obj -> obj… Read More
‘bodyStreamAsClass’
method map the request body stream to an object. It is a memory optimized
version of bodyAsClass method.
ExampleEmployeeRequestDto employeeRequestDto = ctx… Read More
Using
Context.bodyAsClass() method, we can map the request body to a Java object.
ExampleEmployeeRequestDto employeeRequestDto = ctx.bodyAsClass(EmployeeRequestDto.class);… Read More
In this post, you are going to learn, how to run
Groovy scripts in Java.
Groovy
Groovy is an object-oriented programming language for
the Java platform. It's known for its ease of use, c… Read More
Event sourcing is a design pattern in which the system
state is captured as a sequence of events. Every change to the system state is
captured as an event. This sequence of events can be use… Read More
Context.bodyInputStream()
method read the request body as input stream.
Example
InputStream
inputStream = ctx.bodyInputStream();
Find the
below working application.
Ste… Read More
Context.body()
method return the request body as string.
Example
String
requestPayload = ctx.body();
Find the
below working application.
Step 1:
Create new maven
projec… Read More
302: Moved Temporarily
The HTTP status code 302 indicates that the requested
resource has been temporarily moved to a different URI. The client should
continue to use the original Request-U… Read More
Using
Javalin.get() method, we can model a GET api.
Signature
public
Javalin get(@NotNull String path, @NotNull Handler handler)
Adds a GET
request handler for the specified path to the… Read More
TL;DR: Visualize the gender parity in industrial employment using the Syncfusion .NET MAUI Bubble Chart. Learn to gather and bind data to the chart. We’ll also customize the chart by… Read More
Ever stood idly by a static poster, wishing it could do more than just exist? Well, get ready to toss out that outdated notion, because digital information displays are shaking up public eng… Read More
Do you consider unit testing as not enough solution for keeping the application’s reliability and stability? Are you afraid that somehow or somewhere there is a potential bug hiding… Read More
To handle long running
operations, we can consider utilizing the AsyncQueryRunner for executing tasks
asynchronously. The AsyncQueryRunner class has the same methods as the
QueryRunner calls… Read More
Presented by My Health, My Caregiver: Your afternoon must-read briefing informing the daily conversation among knowledgeable New Yorkers May 31, 2024… Read More
Quick Overview:A practical approach is followed in the blog to help you understand setting up and writing unit tests in .NET Core. MSTest framework is utilized to demonstrate the process alo… Read More
TL;DR: Syncfusion Blazor Pivot Table is the perfect tool for data analysis. To further boost its performance, we’ve shared some best practices, including using individual NuGet packa… Read More
TL;DR: Explore the advanced PDF exporting capabilities of Syncfusion Angular Pivot Table along with customization. Learn to generate highly customized PDF reports with step-by-step guidanc… Read More
There are
two core classes in DBUtils.
a.
QueryRunner:
Runs SQL queries using pluggable approaches for managing ResultSets. This class
ensures thread safety.
b.
Res… Read More
Testing is an essential stage in software development that guarantees the dependability and caliber of the code. Java developers particularly favor JUnit testing among the many testing frame… Read More
In this article, we explain how to take screenshots in Selenium WebDriver, providing real-time examples and code snippets. Discover step-by-step instructions to capture screenshots during yo… Read More
Distributed
System
A Distributed System is a collection of
independent but interconnected computers that appear to the users of the system
as a single coherent system. These computers are c… Read More
Using BeanInfo#getMethodDescriptors
method, we can get the method descriptors of a bean.
ExampleBeanInfo beanInfo = Introspector.getBeanInfo(clazz);
MethodDescriptor[] methodDescriptors =… Read More
Using
BeanInfo#getPropertyDescriptors method, we can get all the properties of the
bean.
ExamplePropertyDescriptor[] propertyDescriptors(final Class> c) throws IntrospectionException {… Read More
In this article, we learn how to get the current URL in Selenium using Java, with a real-time example and code. We’ll provide a detailed guide and code snippets to help you retrieve th… Read More
In this article, we learn how to open a website in Selenium Java with a real-time example and code. We’ll guide you through the process step-by-step, providing practical insights and c… Read More