Category "spring-mvc"

Why @JsonInclude(JsonInclude.Include.NON_EMPTY) is not working?

I am trying to set null values to database of empty values from JSON payload. This problem caused beacause I have unique constraints on social entity fields. I

Why get 403 Forbidden while click on login [duplicate]

I am working on Spring MVC project. I use Spring Security for secure the url of my project. While i click on login button login succesfully bu

Multiple list of Data comming in API when using ManyToOne Relationship

CarMake.java @Getter @Setter @EqualsAndHashCode @NoArgsConstructor @Entity public class CarMake { @SequenceGenerator( name = "car_make_sequence"

Upgrading Sencha ExtJs from 4.2.2 to 6.0.0

My application's front-end was build long back on ExtJS version 4.2.2 ,so Sencha Cmd tool was not used at that time , I am new to ExtJS and wants to know what a

org.graalvm.polyglot.PolyglotException: ReferenceError: document is not defined

I am using Spring boot 2.4.4, JDK 1.8, and created ScriptEngine as shown. Page loaded perfectly for the first time but the second time it throws the exception

How to check spring boot post API if it is available in the database

**Controller** package com.example.curd.curdtesting.controller; import com.example.curd.curdtesting.entity.Book; import com.example.curd.curdtesting.service.Bo

org.springframework.web.servlet.ViewRendererServlet is missing in spring-webmvc-5.3.19 version

While upgrading spring jars from 4.3.29 version to 5.3.19 version i am getting this error ClaasNotFoundException org.springframework.web.servlet.ViewRendererSer

Error creating bean with name 'securityConfig': Requested bean is currently in creation:

package ro.contabilitateexpert.AccountExpert.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotati

Spring boot 2.1.3.RLEASE to 2.6.6 upgrade and un-supported http method behaviour

I was using spring 2.1.3.RELEASE before. Used to handle all un-supported HTTP methods and endpoints with an custom error like below and it worked; /** * Handle

Spring boot WebSecurityConfigurerAdapter basic authentication user password validation issue

I'm writing a simple REST API using Spring Boot and I want to enable basic authentication. Therefore I have used the WebSecurityConfigurerAdapter as shown below

I can't update my webapp to Spring Boot 2.6.0 (2.5.7 works but 2.6.0 doesn't)

As mentioned in the title I can't update my webapp to Spring Boot 2.6.0. I wrote my webapp using Spring Boot 2.5.5 and everything works perfectly. If I update t

Copying a Java Dynamic Web Project and renaming it to new one causes the error in Tomcat

In eclipse whenever we copying a java dynamic web project into new one by renaming it and trying to run the new copied project in tomcat server it causes below

Using Node.js as an alternative of Spring MVC project

Hello to everyone who is viewing this question. I am currently running a web-application server, which only does CRUD operation (using MySQL) for android and iO

Why validation not work for encoded password

In my project i add some validation for Signup form fields. While click on submit button password validation not check orignal password like @AAAzzz123 but it c

Spring Boot now displaying the index.jsp page

I am a newbie with Spring boot. I am trying to return my index page in the controller but I am not able to. Its just returning the word index in the output. Her

Return to the list of a repository in Controller

I'm trying to return a list that is inside a Repository in my controller, but I'm not getting it. Could someone help me? This is a RESTapi for an ATM project th

Upgrade Spring Web MVC 4.1.6.RELEASE to 5.2.21.RELEASE -> NoClassDefFoundError: .../web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter

I am upgrading my Spring project 4.1.6 to 5.2.21. But now when I run my Tomcat 8.5.65 I catch this message error: org.springframework.beans.factory.BeanCrea

Problem with using spring and tiles in intellij

I tried many things what I can search in google. but failed to solve this. If I use only 'InternalResourceViewResolver' it works. but if use tiles, it dosen't w

IM getting "HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception" error,new to spring-mvc and java

I'm new to java ,self-learning through video's and stackoverflow , I cannot find where I committed error in this code. this is my web.xml : <?xml version="1.

IM getting "HTTP Status 500 - Servlet.init() for servlet dispatcher threw exception" error,new to spring-mvc and java

I'm new to java ,self-learning through video's and stackoverflow , I cannot find where I committed error in this code. this is my web.xml : <?xml version="1.