Recent Posts - page 3
-
Upload files in Spring Boot application using Commons FileUpload
In our previous post, we saw how to upload a file using the Spring framework’s default implementation for MultipartFile interface. In this post, we will see how we can use the Commons FileUpload library and the wrapper implementation CommonsMultipartFile provided… Read More ›
-
Uploading files in Spring Boot application
Uploading files is one of the most common operations in a web application. In this article we will look at how to upload file from an HTML page and copy it to the file system on the server. Creating a… Read More ›
-
How to use regular expression in Java?
Regular expressions are very important tool for seraching in text. Below is the code snippet for executing regex search and capturing different parts of the string based on the regular expression The groups are captured by using (). In the… Read More ›
-
How to parse number string with commas to Integer or Long?
Below is the code used for parsing number string with commas to Integer or Long
-
Using Websocket with Spring Framework and Vuejs
Websockets are full duplex (persistent) connections between client and server such that both can share information with each other without the need for repeatedly establishing a new connection. This removes the need for repeated polling from the client to get… Read More ›
-
Advanced profile management in Spring Boot
We all are aware of profile management in Spring Boot and the flexibility it provides in configuring our applications for different environments. The other powerful aspect of this is that at any given time we can have multiple active profiles…. Read More ›
-
JDK 14 – JEP 361 Switch Expressions out from preview
In my previous post, I wrote about switch expressions and related enhancements released as a preview feature for JDK 12. Subsequently, in JDK 13 there were some changes proposed, like using yield keyword to return value from the switch block… Read More ›
-
JEP 355 Text Blocks in JDK 13
JDK 13 went GA on September 17th, 2019 and the prominent new features are listed here. One of the new features is “text blocks”. This allows writing multiline strings easily without the need for concatenation while splitting into different lines…. Read More ›
-
Integrating Amazon Cognito With Single Page Application (Vue.js)
Update: I have reviewed this post based on the comments and I have fixed ambiguity in the same. Please refer to the sample code and remember to replace the values in the `.env.local` (https://github.com/sanaulla123/samples/blob/master/aws-cognito-spa-demo/.env.local) file with those which are available… Read More ›
-
Integrate Spring Boot Application with Amazon Cognito
In this article, we will show how to use Amazon Cognito service for authentication users in a Spring Boot application using the OAuth 2.0 client library introduced in Spring Security 5.0. What is AWS Cognito? Amazon Cognito is service offered… Read More ›
Featured Categories
Java ›
-
Java 17 – Sealed classes
February 18, 2022
-
Java 16 – Pattern matching for instanceof
February 11, 2022
General ›
-
Working with LocalDate, LocalTime and LocalDateTime
September 27, 2018
-
Getting to know about java.nio.file.Path – 2
September 5, 2017
Books ›
-
Book Review: Steal Like an Artist
July 4, 2022
-
Book Review: Show Your Work
July 1, 2022