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.

198,313 questions
0votes
0answers
4views

MockMvc ContentType is undefined in Result Action

I am working with Spring 2.7 & JUnit 5 on Eclipse and I have been trying to write a test statement for creating a product. Unfortunately, I am not sure what import statement I am missing (or not ...
0votes
0answers
8views

How to stop spring batch job in validator step

From JobBuilderFactory, I'm using the .validator(...) to check if my parameters are right. It seems that when I throw a JobParametersInvalidException the process continues to the next step. How can I ...
0votes
0answers
10views

Proper argument type for scalar JSON graphql

What is proper input argument type for scalar JSON @Argument? As the result I have all arguments in my map when I need only my: My schema.graphqls scalar JSON type Product { id: ID ...
-1votes
0answers
10views

Spring Batch ItemReader Approach Suggestions

I am going to use a simple use case to see how I should approach this scenario with an ItemReader. I have a flat file where each line/record has company information and several addresses and contacts. ...
0votes
0answers
18views

403 Forbidden - Spring security with spring boot

I have my spring boot application and I'm trying to add spring security but when I do a request through postman I keep getting a 403 Forbbiden, Online I found I shoud add: ".csrf().disable()"...
0votes
1answer
14views

is it needed to add init-method in Sprint configuration file if there is nothing to initialize

I am new to Java. I have below java class:- @WebService @SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.LITERAL) public class ABC extends AbstractWebService { protected ...
0votes
0answers
12views

Correct the classpath of your application so that it contains compatible versions of the classes .context.expression.StandardBeanExpressionResolver

I have upgraded spring boot to 2.7.1 from 2.5.0 and I am getting below error while deploying the project. I am using spring context 5.3.2 28-Jun-2022 19:45:51.683 SEVERE [RMI TCP Connection(2)-127.0.0....
2votes
1answer
12views

How to change context path of spring-boot actuator?

I created a docker container of my spring-boot application with actuator endpoint enabled. Assuming the container runs on port 8080, it is accessible at localhost:8080/actuator, which exposes the ...
0votes
0answers
14views

Replace WebSecurityConfigurerAdapter in Spring boot for ResourceServerConfigurerAdapter

Since Spring Boot 2.7.x version WebSecurityConfigurerAdapter class is deprecated and there is a guide from spring.io on how to replace those classes and use component-based security configuration. My ...
0votes
0answers
9views

Spring Data JPA - Users and Authorities relationship

Is the relationship between Users and Authorities one to many or many to many? Why choose one over the other when mapping out the Entities? Is it just schemantics or will actually one type of ...
1vote
1answer
8views

while initialize the spring boot project IntelliJ idea it is asking to select the dependency

[] 1I am new to spring-boot. After installing the Spring Initializer plugin, I started to create my very first Spring Boot project. While initializing the spring boot project, IntelliJ IDEA asks to ...
0votes
0answers
24views

Spring boot authentication in 2022

I have trouble with figuring out Spring Boot authentication. I am new to Spring Security and recently WebSecurityConfigurerAdapter got deprecated. Is there a source where basic authentication is ...
0votes
0answers
14views

Redis repository and polymorphism don't work together

I have this code : @Getter @Setter @RedisHash class Root { private Base base; } public interface Base { } @Getter @Setter public class Implementor implements Base { } I have a ...
0votes
0answers
15views

How to use DCharts in Vaadin with Java

I created method (component) in java with Vaadin like below: public VerticalLayout createDchart(){ VerticalLayout verticalLayout = new VerticalLayout(); DataSeries dataSeries = new ...
0votes
0answers
38views

How to get a list from a list of lists in JPA?

I'm trying to get a list of my tv_shows based on Actor Id. At this moment, this is the only thing I get working (The list of chapters based on Actor Id) I have tried to do the same with TvShows, but I'...

153050per page