RrealNameHiddeninrealnamehidden.hashnode.dev·Jan 5, 2025 · 1 min read@PreConstruct and @PostConstruct annotation Spring Boot Examplehttps://youtu.be/kyWZckKWoF4?si=CmpL3g-CtM3c4XtQ @PostConstruct: This method is called after the Spring bean (in this case, ExampleBean) has been created and all dependencies have been injected. It’s an ideal place to put initialization logic. @P...00
RrealNameHiddeninrealnamehidden.hashnode.dev·Dec 8, 2024 · 3 min readHow does reduce() differ from collect() in Java streams?The reduce() and collect() methods in Java Streams serve different purposes and operate at different levels of abstraction. Here’s a detailed comparison: 1. reduce() The reduce() method is used for reducing a stream of elements to a single result usi...00
RrealNameHiddeninrealnamehidden.hashnode.dev·Sep 15, 2024 · 3 min readWhy is 1 == 1 is true but 1000 == 1000 is false When dealing with Wrapper Classes in Java?For Explanation watch video https://youtu.be/5yk-1MoK3QY In Java, the behavior where 1 == 1 is true but 1000 == 1000 is false when dealing with wrapper classes can be surprising. This is due to how Java handles object comparison and the concept of ...00
RrealNameHiddeninrealnamehidden.hashnode.dev·Jan 13, 2024 · 2 min readHow to generate QR Code Using Spring BootFor Explanation watch video https://youtu.be/wWTNrcsbebc?si=MJ5jqZGh8RkO3KZj to generate QR we will use ZXing ZXing (“Zebra Crossing”) barcode scanning library for Java, Android QR code is used to store large amounts of data in a limited space Dire...00
RrealNameHiddeninrealnamehidden.hashnode.dev·Jun 19, 2023 · 1 min readhow to dockerize a spring boot 3 applicationhttps://youtu.be/TTGpqKU7UYY create project add web dependency create controller pkg and class HelloController HelloController package com.example.demo.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springfram...00