Skip to main content

Questions tagged [spring]

The Spring Framework is an open-source framework for application development on the Java platform. At its core is rich support for component-based architectures, and it currently has over twenty highly integrated modules. For Spring Boot related questions, also include the tag [spring-boot].

spring
0 votes
1 answer
27 views

Springdoc OpenApi add Classpath Yaml

I have a OpenApi Spec defined in its own library. This library is used as gradle dependency in my project. I am using Springdoc v.2.5.0. My project is a Spring Cloud Gateway. Currently I am trying to ...
dasganni's user avatar
  • 143
-3 votes
1 answer
49 views

findAll() method in MongoRepository returns an empty list [closed]

MovieService.java package com.example.movies; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service public ...
Trần Khôi's user avatar
0 votes
1 answer
44 views

unable to implement streaming while generating response of ollama

I am using langchain4j, PGVector and Ollama (llama3) for my RAG application there is an API endpoint "/generate" where the user gives a string and it returns the response generated by the ...
Rounak Chakraborty's user avatar
0 votes
0 answers
45 views

Spring Redis serialization issue with Spring Security's DefaultSavedRequest class

I am using spring-session-data-redis, spring-boot-starter-data-redis for session persistence in Redis. The Spring Boot version for the application is 3.2.6. I am also using Spring Boot security with ...
Abhishek Patnaik's user avatar
0 votes
0 answers
13 views

Spring Batch how to create fixed size file when reading multiple flat files?

I'd like to further extend Reading data form multiple csv file and writing it into one csv file using Spring Batch, in my case I've to read multiple files (with the same filename) from different sub-...
PAA's user avatar
  • 11.5k
-1 votes
0 answers
34 views

Cannot receive request from Java spring framework [closed]

I'm using CentOS Web Panel on CentOS 7 and currently I have this problem. My server is intended to receive a push data in XML format from 3rd party using Java Spring, and it return with 403 forbidden ...
Wahyu Kurniawan's user avatar
-1 votes
1 answer
32 views

How to pass multiple images as @RequestPart in Spring feign client?

I am trying to pass multiple files (images) using feign client. However, when I am using @RequestPart annotation for list or array of MultipartFile, I am getting an error. For a single MultipartFile ...
mar3g's user avatar
  • 128
0 votes
1 answer
34 views

I can't auto login user after registration in spring boot

when i registrate user my project throws stackOverFlowError, but user is saved to database.I also have registration form. Here is my registration controller: @PostMapping("/register-user") ...
abdullakh mirfayziev's user avatar
0 votes
0 answers
26 views

Connecting Jconsole to java app on GCP via SSL ( connect to JMX through JNDI )

I'm trying to make a connection to my java app, using Jconsole. I want to secure that by SSL. At the end I want to move this app to GKE and make the same connection. What I have: Simple springboot app,...
bua's user avatar
  • 1
0 votes
1 answer
17 views

"java.lang.IllegalStateException: org.springframework.cloud.config.client.ConfigServerInstanceProvider$Function has not been registered"

Getting the exception: java.lang.IllegalStateException: org.springframework.cloud.config.client.ConfigServerInstanceProvider$Function has not been registered In Spring Cloud Config Server. Configured ...
Thadivaka Gopi Krishna's user avatar
1 vote
0 answers
58 views

Spring Boot RestClient as a singleton or create new instances per request

Looking through the documentation here, the expected pattern to use for RestClient is to autowire the RestClient.Builder and then build the RestClient in the constructor method of a service. While ...
Anthony Lofton's user avatar
-1 votes
1 answer
47 views

Return whole child DTO inside parentDto [closed]

I have class student and school DTO. Class Student{ private String name; private School school; } Class School{ private String schoolName; private String address; } while returning ...
JAYESH rathi's user avatar
0 votes
0 answers
25 views

How to Convert a Complex SQL Query to Hibernate Criteria API

I'm learning about Hibernate's Criteria API and would like to know how to convert this particular SQL query to Criteria API. Here is the SQL query I’m working with: select s1.score as score,count(s1....
random guy's user avatar
0 votes
0 answers
15 views

Any new changes in Angular UI code not reflecting in running war file, generated from Angular and Java Spring code and deployed in wildfly server

I am working on support for one legacy project with below environment: Client: Angular UI, version: 4 Backend developed in: Spring, Server: Wildfly Java version: 8 Below is screenshot of my project ...
user26440830's user avatar
-1 votes
1 answer
37 views

How to set the principal name of a Spring Security OAuth2AuthorizedClient using access token response?

I am currently playing around with Spring Security 6's OAuth2 Client in Spring Boot 3. I am using an authorization_code grant which is exchanged for an access token using the following security config:...
AwesomeDude091's user avatar

15 30 50 per page