spring-boot Questions
8
Solved
I'm trying hystrix fallback method.
On localhost:8082, customer-service is running which returns name of the customer.
If the customer-service is down, fallback method should invoke. But it is not...
Otiliaotina asked 18/12, 2016 at 16:22
4
Solved
Followed the spring guides to build the eureka server, spring cloud gateway and a sample rest service.
However, the gateway is unable to retrieve the urls using the service name from the eureka se...
Haemophiliac asked 6/9, 2018 at 5:12
2
Solved
Currently, I am working on a project to upgrade it to Spring Boot 3, Spring 6, and Java 17. But I am facing an issue with HttpStatus. I have a method that returns HttpStatus.NO_CONTENT and HttpStat...
Mixedup asked 19/7, 2023 at 8:23
1
I have a spring boot (2.1.6) application that both consumes and produces messages to a (organization wide) common kafka instance. I am trying to implement health checks for this kafka broker in my ...
Tjirebon asked 11/12, 2019 at 13:54
5
Solved
I have a spring-boot application that defines a mysql DataSource:
spring.datasource.url=...
spring.datasource.username=...
spring.datasource.password=...
I run the tool as command line applicati...
Yaakov asked 4/11, 2019 at 14:54
10
Solved
First to say is that I've been searching for a solution for a while now and I'm quite desperate now.
I cannot get the css file to be accessible from html page when run by Spring Boot.
html.file
...
Ligneous asked 10/4, 2015 at 13:17
7
Solved
I get this error while running a JUnit test in Spring Tool Suite (4.20.0).
Test runs fine, but this error is thrown at the end -
java.lang.NoSuchMethodError: 'java.util.Set org.junit.platform.engin...
Admetus asked 6/10, 2023 at 3:58
6
Create Maven project. File -> New Project -> Maven. Archetype do not indicate.
Then everything is standard: GroupId and ArtifactId. The project is created with empty pom.xml
I am trying to c...
Indiscretion asked 25/11, 2021 at 2:46
7
Solved
i'm working on spring boot project and all works fine , now i want to build and run the app.
in the application.properties file i set the property server.port = 8090
after building the project usin...
Afghanistan asked 26/6, 2017 at 11:29
2
Solved
I am benchmarking some methods using jmh through a spring boot application. When i run it through IDE it gives me benchmarks but when i package it with maven and run it through CMD it gives the bel...
Perpetua asked 21/8, 2018 at 15:30
3
Solved
When I added spring shell to project
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell-starter</artifactId>
<version>2.0.1...
Oosphere asked 22/2, 2020 at 13:5
10
I am trying set Spring Cloud Config Server, but the service config server, it the running on port 8888 which is correct, and another service should run on port 18060, but for reason when I startup,...
Zebrawood asked 17/5, 2017 at 2:39
13
Solved
I am new to Spring Boot and I'm getting the following error when writing a file upload API:
Error:Description:
Field fileStorageService in com.primesolutions.fileupload.controller.FileController ...
Glick asked 30/1, 2020 at 19:22
3
Solved
When I want make query in Intellij JPA console I get error that relation "topic" does not exist. Jpql query select t from Topic t. I'm using spring boot, I added jpa to module, persistence toolbar ...
Brogue asked 19/7, 2019 at 10:53
1
Solved
In my sample application I have a simple @RestController controller:
package app.springtest.api.book;
import app.springtest.service.BookService;
import lombok.RequiredArgsConstructor;
import lomb...
Onagraceous asked 10/5, 2019 at 13:22
4
Solved
I am upgrading a service from spring boot 2.7 to 3.2.0 and bumping into an issue where I get an HTTP Status 500 – Internal Server Error error when accessing actuator endpoints.
Looking at the stack...
Centurion asked 24/12, 2023 at 10:51
2
Solved
As stated in the Spring Boot 3 Migration Guide the server.max-http-header-size property has been deprecated. You can use the server.max-http-request-header-size property to set the max http request...
Achondroplasia asked 15/2, 2023 at 13:32
3
Solved
I have an issue with loading data into an in-memory database on application initialization. I have created schema.sql and data.sql files containing table structure and initial data.
schema.sql :
...
Potiche asked 24/1, 2017 at 23:55
8
I am getting below error message when I am running my spring boot application.
Description:
The dependencies of some of the beans in the application context form a cycle:
┌─────┐
| securityConfig...
Superphysical asked 14/4, 2022 at 6:14
11
I am moving to Spring doc open Api and trying to hit the URL. I am getting the below error and logs from console.
URL : http://localhost:8080/swagger-ui/index.html?url=v3/api-docs
Logs :
2020-0...
Haught asked 24/3, 2020 at 17:23
3
Solved
I am upgrading my project from springboot 2.7.7 to springboot 3.1.1 and java 11 to 17
I have spring-boot-starter-mail included as a dependency and I try to send mail as follows
@Service
public clas...
Terenceterencio asked 3/7, 2023 at 2:1
4
I'm having trouble setting null as a property value.
This is how the value is defined in YAML file:
my-property: null
This is how I inject it in code:
@Value("${my-property}")
private St...
Discover asked 23/11, 2020 at 18:53
4
Solved
Requirements:
Spring Boot application with Springfox
Add BASIC authentication to Swagger
Pass on all other requests
Code: implemented
@EnableWebSecurity
@Configuration
public class SecurityCo...
Paulita asked 25/4, 2018 at 14:2
1
Solved
I have a WebClient configured as below. In main runtime, webClient is used in a kafka listener started thread. So out of http servlet context. And it is failing as I noticed we should use Authorize...
Berner asked 2/8, 2024 at 13:42
4
Solved
I am following this example (Validate Request Body and Parameter in Spring Boot in medium) and this example to implement a Handler to handle the correctness of a JSON as a parameter. The concepts a...
Concupiscence asked 9/3, 2023 at 21:30
© 2022 - 2025 — McMap. All rights reserved.