Questions tagged [spring-boot]

Spring Boot is a framework that allows to easily create Spring-powered, production-grade applications and services with the absolute minimum fuss. It takes an opinionated view of the Spring platform designed to work for new and experienced users of Spring.

1 vote
0 answers
10 views

how to include only certain class to apply jackson fail_on_unknown_properties with false

how to include only certain class from the package to apply the ignore unknown properties value with false. the below class are generated from swagger2.0, in the below i want to include only farm....
user avatar
0 votes
0 answers
8 views

How to get the child Nodes in Mongodb in Java syntax

I am trying to get the specific field value in JSON format .I have used below syntax and able to get the Email details but not in expected format . Document document = new Document(); ...
user avatar
  • 79
0 votes
0 answers
13 views

Facing Caused by: org.apache.kafka.clients.consumer.CommitFailedException:

Commit cannot be completed since the group has already rebalanced and assigned the partitions to another member. This means that the time between subsequent calls to poll() was longer than the ...
user avatar
  • 1,895
0 votes
0 answers
13 views

Jacoco 0.8.2>= + Java 11 + Spring 5 not working

I'm getting the following error when attempting to "Run Coverage" as junit test: All I can really find is that Java 11 support began at version 0.8.2 for jacoco, which I've updated but I ...
user avatar
  • 442
1 vote
1 answer
26 views

SpringBoot @ConfigurationCondition is evaluated before the Spring Beans have been instantiated

I'm trying to use the @ConfigurationCondition annotation to register a bean based on a dynamic condition. This dynamic condition is present in another bean. Putting the code below to better describe ...
user avatar
  • 938
0 votes
0 answers
9 views

How to handle 404 error when using Spring Cloud Gateway

Application I'm working serving static files of a frontend application inside the spring cloud gateway. At the moment any route other than the predefined once are ended up being 404 as expected. @Bean ...
user avatar
  • 2,215
0 votes
0 answers
8 views

How to query data from multiple table using criteria builder api in spring jpa?

Basically I have two tables here, Table 1-> : Customer Table-> 2 Client : id:int : id:int : grpId:string(fk) : grpId:string(fk) :...
user avatar
1 vote
1 answer
22 views

Username Password Authentication error in spring boot using Bсrypt

I make Spring boot app. Login with email = mail1@gmail.com and password bob. I have password in BD which is HASH from bob. I get this error on logging: this = {DaoAuthenticationProvider@10456} ...
user avatar
  • 2,188
0 votes
0 answers
14 views

Value of @Value annotated field value is not picked when Service class method is invoked in ServiceTest class

I have 3 classes involved in my problem: MyService, MyServiceTest, MyConfig and a yaml file application.yml. MyRequest and MyResponse are my custom classes which denotes the incoming request to ...
user avatar
  • 57
0 votes
0 answers
16 views

Spring Security Redirecting After Successful Authentication

I am trying to add access control to a set of api endpoints and the problem I am running into is that the service is redirecting to / regardless of whether the original request was /api/apple or /api/...
user avatar
1 vote
1 answer
15 views

Can we debug springboot application using IntelliJ

I am new to the springboot and currently trying to debug the spring boot application. Is there any way to do thta?
user avatar
0 votes
0 answers
16 views

Spring Boot Console app: How to pass input to service?

I created a console app that read user input as parameter and pass this parameter to the service. There are several ways to achieve this e.g. CommandLineRunner, ApplicationRunner, or as mentioned on ...
user avatar
  • 13
0 votes
0 answers
19 views

All requests through OpenApi return 403 FORBIDDEN

There is a Spring Boot application that uses Spring Security. Added OpenApi Swagger to the project. The login request returns 403 even though added to permitAll(). Through Postman everything works ...
user avatar
0 votes
0 answers
12 views

How to serve static website in Spring cloud with other spring cloud routes

In simple words, I want following routes and resources to be served in the same order, from a micro-service If spring cloud routes matches, then redirect to particular micro service If matches a ...
user avatar
  • 2,215
0 votes
1 answer
14 views

How to call Async API in Spring Boot using RestTemplate?

I am in a need of calling a api asynchronously in my spring boot application? Is there any methods that we can used in Spring RestTemplate?
user avatar

15 30 50 per page
1
2 3 4 5
8446