Learn about the underlying causes of ERROR: canceling statement due to user request during statement execution with PostgreSQL and how to handle them.
Also find me here:
Baeldung Author
Wynn Teo
I’m Wynn, a Full-stack Developer with a 10+ years of experience. I began my journey in the tech world during my university days in Singapore, and coding has been my passion ever since. I enjoy learning, especially when it comes to all things tech. The journey of gaining knowledge is what keeps me going.
Here's what I've written (so far):
Baeldung on Java
- All
- JPA (10)
- Spring Data (6)
- Persistence (6)
- Java Concurrency (6)
- Java IO (5)
- Java (5)
- Web Services (4)
- JSON (4)
- Spring Boot (3)
- Java Numbers (3)
- Java List (3)
- Java Array (3)
- HTTP Client-Side (3)
- Testing (2)
- Spring (2)
- Networking (2)
- Java String (2)
- Java Dates (2)
- Jackson (2)
- Data (2)
- Core Java (2)
- Algorithms (2)
- Spring Cloud (1)
- Security (1)
- REST (1)
- NoSQL (1)
- Java Map (1)
- Java Collections (1)
- Cloud (1)
Mapping a org.json.JSONObject to a POJO
Filed under JSON
Learn ways to convert a JSON object to a POJO in Java without losing structure complexity.
Handling Feign GET Requests With a Body
Filed under HTTP Client-Side, Spring Cloud
Learn how to send Feign GET requests with a body in an HTTP-compliant way.
How to Query JPA LocalDateTime Field With a LocalDate Value
Filed under Java Dates, JPA
Learn how to query LocalDateTime fields using a LocalDate value in JPA using simple range queries, JPQL functions, and dynamic Criteria API queries.
Lombok @Data and Final Fields: Solving the “Default Constructor in Base Class” Error
Filed under Java
Explore why Lombok shows the “lombok needs a default constructor in the base class” error when a subclass uses @Data and simple fixes, like adding a default constructor, using @NoArgsConstructor(force = true), or switching to targeted Lombok annotations
Deserialize to a Map with Correct Type for Each Value
Learn how to properly deserialize JSON data while preserving the original data types of each field using several different approaches
Custom ObjectMapper with Jersey and Jackson
Filed under Jackson
Explore how to create and configure a custom ObjectMapper for Jersey applications using Jackson.
Get String Value From a Java Field via Reflection
Filed under Java String
Explore various methods for retrieving a String value from a Java field using reflection.
Function Pointers Equivalent in Java
Filed under Core Java
Java doesn’t have function pointers, but we can achieve the same behaviour using other techniques.