Skip to main content

Questions tagged [spring-boot]

Use the Spring Boot tag for questions related to spring boot framework and the features it brings to your Web application. This includes questions about configuration, embedding of the Web servers, setting up metrics, health checks, externalized configuration etc. It does not include questions about the Web server itself, Java code running in your application, or standard spring components. Tag these questions with its own tags to get the best response!

spring-boot
67,007 questions with no upvoted or accepted answers
22 votes
1 answer
19k views

Gradle archive contains more than 65535 entries

I am integrating hadoop2.5.0 for running mapreduce job and spring-boot-1.2.7 release and getting error while including this Archive contains more than 65535 entries. My gradle jar dependency jar { ...
Saurabh's user avatar
  • 7,703
15 votes
0 answers
767 views

Django channels with Spring Boot Websockets (StompSession) do not work

Hey there we want to use Django just to execute python code and use channels for the results. Implemented everything the websockets are not working as they should. If I try to send something from our ...
CptDayDreamer's user avatar
14 votes
2 answers
6k views

How to ignore EI_EXPOSE_REP2 in case of spring autowired components

In my Spring Boot application, I use com.github.spotbugs:spotbugs-maven-plugin plugin. The spotbugs check reports no issues on following class: @Service public class FooService { @Autowired ...
Ari Manninen's user avatar
14 votes
1 answer
2k views

Working example of Spring Cloud Gateway with Redis session management?

Can you please point out any written or video tutorial of working example of spring-cloud-starter-gateway? Using spring-session-data-redis, Spring Boot 2 and possibly related libraries e.g. spring ...
bkk's user avatar
  • 427
14 votes
1 answer
2k views

How to migrate code from Spring Security to Reactive Spring Security?

I'm trying to migrate classic Spring Boot Application to Reactive Spring Boot Application, but I have a problems with this task. How to migrate the code below package com.example; import org....
Paul Wolf's user avatar
  • 141
14 votes
2 answers
7k views

Spring Security Caused by: org.springframework.security.config.annotation.AlreadyBuiltException: This object has already been built

In my spring boot application, When I add @PreAuthorize("hasAuthority('ADMIN')") on service layer class which is injected into UserDetailService implementation Class, I get an error "This object has ...
Mukun's user avatar
  • 1,806
13 votes
2 answers
3k views

Hibernate 6.1.5.Final unable to determine table reference

Hello StackOverflow Community, Attempted: Upgrading Spring Boot from 2.7.5 to 3.0.0, which uses Hibernate ORM core version 6.1.5.Final Entity Plant.java @Data @Entity public class Plant { @Id ...
MrC0mm0n's user avatar
  • 305
13 votes
1 answer
2k views

How to set up a cache fallback in SpringBoot when unable to connect to Redis?

There is a SpringBoot (v2.2.7) application, where a Redis cache is configured fragment of pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>...
diziaq's user avatar
  • 7,530
13 votes
4 answers
5k views

Required request part 'file' is not present - Angular2 Post request

I am trying to get my file upload functionality done using Angular2 and SpringBoot. I can certify that my java code for the file uploading working fine since I have tested it successfully using ...
vigamage's user avatar
  • 2,075
12 votes
1 answer
353 views

Register SPI dynamically at runtime

I'm attempting to create a custom implementation of java.nio.FileSystem for an existing Application. The implementation itself seems to work correctly within its context. However, the parent ...
Euklios's user avatar
  • 587
12 votes
1 answer
8k views

Failed to bind properties under 'server.port' to java.lang.Integer

Some time ago I faced with such issue: Failed to bind properties under 'server.port' to java.lang.Integer: Property: server.port Value: $PORT Origin: "server.port" from property ...
Nabla's user avatar
  • 171
12 votes
1 answer
1k views

QueryDsl MongoDB - Accessing Deeply Nested Object for Query

I have issues trying to access nested object when using BooleanBuilder. I have read that the default is 2 levels, but for my use case, I need to access 3rd level nested objects. So I have added @...
user1955934's user avatar
  • 3,395
12 votes
1 answer
3k views

How to generate Swagger UI from javadocs?

I can generate swagger UI on my Spring boot application from @Api @ApiOperation, @ApiResponses annotations. These annotations makes code a bit dirty. I wonder, how I can generate swagger ...
Aisultan's user avatar
  • 342
12 votes
2 answers
929 views

Using redis and elasticsearch concurrently, but it errors with "availableProcessors is already set to [4], rejecting [4]"

ERROR:Factory method 'elasticsearchClient' threw exception; nested exception is java.lang.IllegalStateException: availableProcessors is already set to [4], rejecting [4] I just want to use redis and ...
Mr.True's user avatar
  • 329
11 votes
0 answers
2k views

Server Sent Event (SseEmitter) - Broken pipe when timeout

The SSE using SseEmitter of SpringBoot 2.6.3 is working well, but when there is a timeout, the following error appears : org.apache.juli.logging.DirectJDKLog - : Changing async state from [STARTED] ...
Dupont's user avatar
  • 373

15 30 50 per page
1
2 3 4 5
4468