Open in app

Sign In

Write

Sign In

Sanjay Singh
Sanjay Singh

74 Followers

Home

About

Pinned

[Fixed]GitLab remote: HTTP Basic: Access denied and fatal Authentication

when you are try to push your code local repository(Local computer ) to ? Remote repository(Git) . If your git password was changed than you will get same error . Go to Windows Credential Manager to edit the git entry under Windows Credentials. Replace old password with the new one.

Git

1 min read

GitLab remote: HTTP Basic: Access denied and fatal Authentication
GitLab remote: HTTP Basic: Access denied and fatal Authentication
Git

1 min read


Pinned

How to implement cache(redis cache) and Async communication in spring boot

Required scenario — when I am trying to get large amount data from db (postgresql) but we are getting API gateways time out issue , so we need to follow How to implement Async communication in spring boot step 1- use @EnableAsync in class level annotation over service class @EnableAsync public class…

Spring Boot

2 min read

How to implement cache(redis cache) and Async communication in spring boot
How to implement cache(redis cache) and Async communication in spring boot
Spring Boot

2 min read


Sep 12

Agile Interview Questions

Agile or Agile Methodology or Agile Process for developer prospective — What do you mean by Agile or Agile Methodology or Agile Process? it is a set of rule where software development and management is eassy .by using agile we can deliver high end customer centric software in sort time. in a short development cycle known as sprints It is an iterative approach and each iteration is specially designed to be small and manageable. it…

Agile

5 min read

Agile

5 min read


Sep 11

Java 8 Interface and use case

1 -Consumer interface — A Consumer is an in-build functional interface in the java.util.function package. …

Java

6 min read

Java 8 Interface and use case
Java 8 Interface and use case
Java

6 min read


Sep 9

Map<String,Map<String,Integer> return in java 8

I have a list and that is student type and student contain (id,name, department,gender) on basis of department how to get employee gender count Like o/p HR male 20 female 30 Development male 20 female 60 {Product Development={Female=1, Male=4}, Security And Transport={Male=2}, Sales And Marketing={Female=1, Male=2}, Infrastructure={Female=1, Male=2}, HR={Female=2}, Account And Finance={Female=1, Male=1}}

Java

1 min read

Java

1 min read


Sep 9

Use Of Comparator for Custom Shorting

Problem statement — I have user list need to short on basis of name and age User user1 = new User(1, "sanjay", "10"); User user2 = new User(2, "xanjay", "50"); User user3 = new User(3, "banjay", "20"); User user4 = new User(4, "aanjayz", "90"); User…

Java8

1 min read

Java8

1 min read


Sep 8

Tips to Optimize Java Code Performance And WebApplication

Tips to Optimize Java Code Performance Avoid Writing Long Methods If methods are large with too much processing they will consume memory as well as CPU cycles to execute. Try to break the methods into smaller ones at suitable logical points 2. Avoid Multiple If-else Statements If we are using too many conditional if-else statements it will impact performance…

Java

1 min read

Java

1 min read


Sep 7

[Solved]Maximum Subarray In Java

Question — Given an integer array nums, find the subarray with the largest sum, and return its sum. Example 1: Input: nums = [-2,1,-3,4,-1,2,1,-5,4] Output: 6 Explanation: The subarray [4,-1,2,1] has the largest sum 6. Example 2: Input: nums = [1] Output: 1 Explanation: The subarray [1] has the largest sum 1. Example 3: Solution — 1- we can use brute force algorithm with 3 loop -> o(n3) 2- we can use brute force algorithm with 2 loop -> o(n2)

Leetcode

1 min read

Leetcode

1 min read


Sep 7

Processing large amounts of data in a Spring Boot application

Processing large amounts of data in a Spring Boot application requires careful planning and optimization to ensure efficient and scalable data processing. Here are some steps and best practices to handle large data sets in a Spring Boot application: 1. Use Pagination: 1. Instead of loading all data at once, implement pagination to…

Java8

2 min read

Java8

2 min read


Sep 6

Second Highest Salary Different-2 Way

find the second highest salary, we nest the above query into another query as written below. SELECT MAX(SALARY) FROM Employee WHERE SALARY < (SELECT MAX(SALARY) FROM Employee); Second Highest Salary in MySQL without LIMIT SELECT MAX(salary) FROM Employee WHERE Salary NOT IN ( SELECT Max(Salary) FROM Employee); SELECT MAX(Salary) From Employee WHERE Salary < ( SELECT Max(Salary) FROM Employee); Second Highest Salary using Correlated SubQuery SELECT Id, Salary FROM Employee e WHERE 2=(SELECT COUNT(DISTINCT Salary) FROM Employee p WHERE e.Salary<=p.Salary Second Maximum Salary in MySQL using LIMIT SELECT Salary FROM (SELECT Salary FROM Employee ORDER BY salary DESC LIMIT 2) AS Emp ORDER BY salary LIMIT 1; N Maximum Salary in MySQL using LIMIT SELECT Salary FROM (SELECT Salary FROM Employee ORDER BY salary DESC LIMIT 2) AS Emp ORDER BY salary LIMIT 1;

Interview

1 min read

Interview

1 min read

Sanjay Singh

Sanjay Singh

74 Followers

Java||Spring-Boot|| Micro services Application developer|| INDIA

Following
  • Samuel Catalano

    Samuel Catalano

  • Netflix Technology Blog

    Netflix Technology Blog

  • Amar Balu

    Amar Balu

  • Sanjay Y

    Sanjay Y

  • Kevin Tomas

    Kevin Tomas

See all (9)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams