I have been trying to implement 2fa using OTP. Till now i am successful doing it via browser flow using keycloak interface to login. Keycloak provides an API to
My Spring boot app hosted in AKS Azure, while hitting the redis cache in Azure, getting Unable to connect to Redis; nested exception is org.springframework.data
I want to send messages on different dates so I'm going to use java scheduler and dynamic cron expression but the problem is that user can send multiple messag
I am trying to execute a couple of queries on different threads. There are 2 top level queries each executing on different tables at runtime. For executing the
I crafted a simple Java8/Eclipse/Maven/spring boot microservice on my own personal laptop ie have admin privileges. I start it with java -jar myService.jar from
I'm trying to seek the offset to some specific offset. It seems I need to use seekToTimestamp and there is no seekToOffset or something. I've research a lot but
I'm trying to modify existing test of kotlin+springboot project. Mockito.`when`(serviceA.getData(anyString())).thenReturn(data)// existing mocking Mockito.`when
I want response from redis cli to postman as this http://localhost:8585/api/home/getBestTrainerBasedRating [ { "trainerid": 28, "rating": 5.
Springboot and Axon: Basically I am unit testing an aggregate that uses three different ObjectMapper instances, each with a different configuration. These are d
I use spring-cloud-stream-binder-kafka to connect to the kafka broker I updated spring-cloud-dependencies version to 2021.0.1 I went from this [INFO] +- org.spr
I have a legacy app made in grails which uses springSecurityService.encodePassword to generate user password. It's stored in database like this: {bcrypt}$2a$04$
I need to trigger an event when db column is not updated for certain time using spring boot and gcp. Note:- we should use spring boot schedular. Let me know is
I am getting the errors: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not
I want to log into two different files, historic.log and applicative.log, from the same package that is com.authenticationservice.user.UserRequest. In the histo
In the application I would like to create a request-scoped bean (annotated with @RequestScope) that would represent a user of the application (for authenticatio
I'm not able to send message to sqs-queue from my java application. I am running roribio16/alpine-sqs docker image for SQS in my local and I've created a standa
I have this spring boot app running on an AWS EC2 instance and when I make a post request from insomnia in my computer, it works, but, when calling it from my r
In my last project, there was a requirement for throwing exceptions when the request body contains extra parameters. If the request will be like { "test":"bo
I am working on spring-boot project Code is working fine until I add javascript , bootstrap and CSS path in list-todos.jsp but after I add them and hit URL "htt
I have just read Spring Boot configuration with Morphia? and I am trying to implement it like this. But I always get Field mongoClient in MorphiaAutoConfigurati