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.
126,686
questions
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....
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();
...
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 ...
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 ...
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 ...
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
...
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)
:...
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}
...
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 ...
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/...
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?
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 ...
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 ...
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 ...
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?