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
212,716
questions
0
votes
1
answer
34
views
Spring @Autowired in mapped object from Jackson ObjectMapper
Is there a way to get @Autowired Objects initialized properly inside a newly created Object that came from objectMapper.readValue()?
BaseEventInfo eventInfo = objectMapper.readValue(eventJson, ...
-1
votes
0
answers
21
views
Spring boot serialize different fields according to users role [duplicate]
I've a spring boot project that is about 90% of development complete and I just faced a new requirement, for one specific endpoint the response must only include certain entity fields if authenticated ...
-1
votes
0
answers
34
views
Getting 404 on several resources or endpoints when using antMatchers instead of antMatcher [closed]
I'm using two configuration classes with different goals.
SecurityConfig
This class manage permissions for all endpoints of my web application:
package com.IOTProjectUI.security;
import java.util....
0
votes
0
answers
31
views
How to pass list in SQL query - Spring Batch Caused by: java.sql.SQLException: Parameter index out of range (2 > number of parameters, which is
Before posting the question - I went through below URLS, but it was clear enough to me
Using SpringBatch JdbcCursorItemReader with List as NamedParameters
How to set list of parameters on prepared ...
1
vote
0
answers
32
views
SpringBootTest with Togglz
I just recently added togglz to the spring-boot 3.1.9 application, which contains also much stuff like spring-security, spring-data, etc.
Maven dependency:
<dependency>
<groupId>org....
0
votes
0
answers
12
views
open api generator kotlin gradle dsl - cant generate specific api endpoint
i am using open api generator kotlin dsl build.kts gradle task version 7.0.1 to generate spring 2.7.18 web clients
expected: generate 1x MeterApisAPi and 1x model
openApiGenerate {
inputSpec.set(&...
-1
votes
0
answers
49
views
JavaFX Preloader and Spring: Cannot Load configuration class
I'm trying to create a lib-agent (later having to use graalvm) and I only have to use cli commands.
After using this command:
java -agentlib:native-image-agent=config-output-dir="META-INF/native-...
-1
votes
0
answers
18
views
Spring Boot v 2.7.9 compatibility issues with Spring Cloud and Spring Task
I've a Spring Task that I would like to run in PCF using the below combinations:
Spring-boot version 2.7.9,
Spring cloud dependencies version 2021.0.3,
Spring cloud task dependencies version 2.4.0,
...
0
votes
0
answers
22
views
conflit class loader between quarkus and springframework
I'm actually working in project to test quarkus kafka and in the same time I tried CXFclient in quarkus also.
When I run my unit test, I get the following error:
Runtime java.lang.RuntimeException: io....
0
votes
0
answers
20
views
Linking CSS file to all sub-sites of Spring Web application
So, I stumbled into a problem with my Spring App when linking css into the html files. I put the CSS file in the correct directory (/resources/static/styles/file.css), but it is linked only to the top-...
0
votes
0
answers
28
views
org.graalvm.polyglot.PolyglotException: TypeError: <this>.clearProviders is not a function
This error is printed in the logs when graalvm is trying to render html at server side using react state.
07-19 18:23:38.331 ERROR [mbsrp,fa8ca96156e3abd0,fa8ca96156e3abd0] [nio-9061-exec-2] com.******...
0
votes
0
answers
12
views
Spring Boot Mail prints anything on STDIO
I am sending emails with my spring boot server
I am using org.springframework.boot:spring-boot-starter-mail:3.3.1
But i get a stupid amount of log output. Is there any way to disable that?
As far as i ...
-1
votes
1
answer
24
views
Is there any chance to get the vulnerability fixed for spring-web and spring-webmvc version 5.3.37?
Recently I'm migrating spring boot legacy application from spring boot version 1.x to 2.7.x and used spring-web and spring-webmvc artifact with version 5..3.37 which is having 1 vulnerability. I'm ...
-1
votes
0
answers
21
views
Failed to load ApplicationContext for [WebMergedContextConfiguration@fcb4004 testClass in Spring boot on docker compose
I would like to add authorisations via LDAP to the project. So I added the necessary classes to the project and there was a problem building the application. I have tried various configurations ...
-1
votes
0
answers
27
views
Why is there no implementation of simpler data transfer between steps in Spring Batch?
I am only a beginner in batch data processing and am currently studying Spring Batch. There is a point that I don't quite understand yet. Why have so many different complex implementations of readers ...