58,884 questions
0
votes
1
answer
31
views
Wsdl files generator Plugin issue while testing the endpoint
able to import all the wsdl files with Jakarta imports, but getting issues when testing the ending where it internally calls wsdl files, getting error com.sun.xml.ws.streaming.XMLstreamingWxception: ...
1
vote
1
answer
88
views
About accepting parameters for `multipart/form-data` requests in the `Controller`
While using the Controller to receive parameters for multipart/form-data requests, I found that the spring.servlet.multipart.resolve-lazily configuration option has an impact on whether the request ...
1
vote
1
answer
84
views
Cross domain post request from Spring controller
I need help for this particular case. The requirement is to redirect from spring controller to other domain website. We have some data to be posted as well. How can we make a post request (server-to-...
0
votes
1
answer
88
views
Spring 6 HttpServletResponse.sendError(...) not commiting response to client + unexpected filterChain behaviour
I updated my Spring boot application to v3.4.4 and started getting some strange behavior when processing request with missing/expired/invalid JWT tokens. The filter chain is the following:
@Order(...
0
votes
1
answer
64
views
How can I specify the local file when calling get message within a free market ftl file?
On a page when using springMacroRequestContext.getMessage text for en-us and it pulls from my messages-en-us.properties file, however in some cases I'd like to for a particular string to pull the text ...
0
votes
0
answers
160
views
springdoc-openapi-starter-webmvc-ui 2.7.0 not working
i am working with spring boot springdoc-openapi-starter-webmvc-ui 2.7.0 not working altho
<dependency>
<groupId>org.springdoc</groupId>
<...
0
votes
1
answer
154
views
How to reference bean that is a record from a Spring expression?
I have Spring Boot automatically reading in some application.yaml configuration into this record:
package foo.bar.baz;
@ConfigurationProperties(prefix = "apns")
public record ...
0
votes
0
answers
11
views
HQL query returns NULL after session.save(object) and session.flush()
I am creating an enablePackage API code flow in JAVA. I am using the Spring MVC project.
I am facing an issue related to HQL query returning null.
The code logic is as follows:
Foo.class
List<...
-1
votes
2
answers
169
views
How to perform update in Spring Boot application?
In a service UserServiceImpl.updateUser method I need to return Optional if repository userRepository.findById method returned Optional or perform update of selected entity. The code does not work:
...
1
vote
1
answer
58
views
Why @Encode annotation isn't applied to multiple parameters at Controller level?
I have a problem with OpenAPI curl generation.
I have to create POST method with three parameters: application/json, text/plain and multipart/form-data medium types. So curl that is going to be ...
0
votes
0
answers
62
views
What is usage of ProblemDetailsExceptionHandler?
The ProblemDetailsExceptionHandler in Spring Boot is an empty class extending ResponseEntityExceptionHandler and annotated with @ControllerAdvice. It has no explicitly defined behavior, and source ...
0
votes
0
answers
34
views
Why is my response already committed in my lowest precedence filter in spring when using ContentCachingResponseWrapper?
I have a OncePerRequestFilter:
@Component
public class RestrictedSettingsFilter extends OncePerRequestFilter {
@Override
protected void doFilterInternal(HttpServletRequest request, ...
0
votes
0
answers
45
views
set default Locale in s SpringBoot - Thymeleaf
I have this template:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" th:lang="${#locale != null ? #locale.language : 'en'}" lang="en">
<head>
...
-1
votes
1
answer
71
views
REST endpoint invocable either by API Key or User Login
I'm building a micro service with REST endpoints protected by APIKeys for use inside a corporate firewall. I'm trying to add a small, simple UI to the application that will allow a user to login and ...
0
votes
1
answer
148
views
Spring MVC view resolver successfully resolves JSP, but it still will not load
I am trying to make a web app using Spring 6 (no Spring Boot), with mostly XML configuration. I'm trying to learn this in order to maintain an existing legacy application that uses plain Spring with ...
0
votes
1
answer
149
views
Set up OpenAPI (Swagger) UI 3 in Spring Framework 6
Tried a few suggestions in existing stackoverflow discussions but I can't even get the html page to serve, and almost all information on the web uses Spring Boot instead, does anyone have an article, ...
2
votes
1
answer
45
views
Combine global Spring Security CORS configuration with @CrossOrigin
I am implementing CORS config for my application, where I use SpringSecurity for global configuration and also @CrossOrigin with stricter CORS rules than in my global configuration on a specific ...
0
votes
0
answers
273
views
SAP RFC_READ_TABLE Error: OPTION_NOT_VALID When Filtering USR02 (GLTGB >= currentDate OR '00000000')
I am facing an issue while fetching user data from the USR02 table using RFC_READ_TABLE in SAP using JCO library. The goal is to retrieve active users(exclude expired users), so I am applying the ...
0
votes
0
answers
200
views
Sitemesh 3.2.1 is not working in the spring 6.1 mvc application
I have created a spring MVC 6.1 app sitemesh showing the blank screen on with both java based and xml based configuration I am using sitemesh 3.2.1
WEB-INF/sitemesh3.xml only have mapping to the ...
0
votes
1
answer
515
views
SSE events not being received until SseEmitter is complete
I am new to Server Sent Events (SSE) and am trying to get them working in my Spring Boot app. The problem I am having is that it doesn't seem like the events are getting sent until complete is called ...
0
votes
0
answers
48
views
JHipster API Gateway - Microservices Endpoints Missing in Swagger Spring Boot 3.3.5
JHipster API Gateway - Microservices Endpoints Missing in Swagger After Spring Boot 3.3.5 Upgrade
I have a JHipster API Gateway where Swagger (http://localhost:8080/admin/api-docs) does not display ...
0
votes
1
answer
59
views
How to override REST Service in springboot
I have a project named customer written in spring boot, and another maven project named customer-customization adds the customer project as a dependency and uses it. My goal: To change the rest ...
0
votes
0
answers
43
views
SQLGrammarException when using java.util.Date in JPQL query
I'm working on a Spring non-boot (6 version) application where I'm trying to retrieve training records for a specific trainee. I'm using JPA with Hibernate and I'm using java.util.Date class date ...
1
vote
4
answers
116
views
SpringBoot not able to initialize @ConfigurationProperties for Map properties
In SpringBoot, I am trying to read the application.properties to Map<String, ServiceModel>, which should be
application.properties
input.default.host=Default
input.default.ip=127.0.0.1
input....
-1
votes
1
answer
166
views
In Springboot i am trying to create login api , but the API returning 403 even credentials are right
When try to POST the api it routes me to /error
here is debug logs
2025-02-20T09:34:07.325+05:30 DEBUG 18944 --- [artistapp] [nio-8081-exec-2] o.s.security.web.FilterChainProxy : Securing POST /...