This may be a simple task, but I couldn't find a way to do it. Basically, I need to disallow some parameters at the time of using @RequestBody annotation in my controller.
Here is my model:
@Data
public class MyModel {
private int id;
private S... more
»

I am a new to ReactJS, before I used angularJS for my client side. But now I want to integrate it with the present application on SpringMVC. Now I want to integrate ReactJS as client side instead of angularJS, please help me. If there is any example ... more
»

I uploaded an image successfully in MYSQL database using spring MVC(MultipartFile) and hibernate.
now I want to get it from db and set it in my page with ajax request and my request is done successfully .(server response is ok)
but the server(java) ... more
»

I am trying to pass a List of objects from my controller which I have to display in my jsp. However I am getting the exception,
[org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver] (http-localhost/127.0.0.1:8080-1) Handler ... more
»

There is a class as follow:
class A {
@JsonProperty("first_name")
String firstName;
}
And a MVC controller:
public A createNewA(A a){
...
}
I expect the following REST create an instance of A with first name:
POST: /path/to/resouce... more
»

I am new to the SVN(Subversion), After installation of these below plugins in eclipse, I got an error while importing project from repository.
Error while importing project from remote SVN repository
... more
»

When posting with jQuery ajax, I get following error.
org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'application/json;charset=UTF-8' not supported
at org.springframework.web.servlet.mvc.method.annotation.AbstractMessag... more
»

I want to reload the data when user click on a button. Issue is with IE. When the button is clicked, the spring controller is not getting called when tested in IE, but works fine in chrome. Other thing i noticed is in IE, it is working properly when ... more
»

My program throws error if i import schemas from WEB-INF.
I have added these all lines for schema in dispatcher-servlet.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
... more
»

There is a Spring MVC REST call:
@RequestMapping(value = "/new", method = RequestMethod.POST)
public IQuery create(@RequestParam Map<String, Object> propertiesMap){...}
As you can see, the result value is an interface with getter method. The... more
»

I use an external library that has a method:
public class CustomUserDetails implements UserDetails {
private final User principal;
private final Collection<GrantedAuthority> authorities;
//constructor, getters, setters
@Over... more
»

I have a Servlet with a parameter bean. The bean has some fields that should no be able to override by the users get-query.
How can I achieve it?
None of the following worked:
@JsonIgnore
@XmlTransient
@JsonIgnoreProperties
private String somefiel... more
»

I'm creating a spring based web application(Spring,jackson and hibernate) that will accept XML/BASE64 input as request message and after processing the response will be XML message. Application will have different controllers to accept BASE64/XML mes... more
»

I have a rest web service developed with Spring Boot.I am able to handle all the exceptions that occur due to my code, but suppose the json object that the client posts is not compatible with the object that i want to desrialize it with, I get
"tim... more
»

I'm playing around with Spring Boot 2.0.0M2, trying to create a CLI application, not a web one. My problem is that even including
compile 'org.springframework.boot:spring-boot-starter'
compile 'org.springframework.boot:spring-boot-starter-json'... more
»

Is there a way (any annotation of base class) using which i can mark a class such that spring throws an error on context initialization? Basically i have a class which is not thread safe by design and i do not want anybody to use it with spring as si... more
»

I've been playing with server side Kotlin, Spring MVC and Jackson.
I built a simple application using http://start.spring.io/, but I might have made a mistake in the JsonView annotation.
This:
@RestController
class MyRestController {
@Request... more
»

I am trying to send ajax POST request to server and to retrieve response.
My problem is that when I submit form, my @RequestBody param is empty.
I followed this tutorial and did the same as that guy did. http://www.mkyong.com/spring-mvc/spring-4-mvc-... more
»

Several months ago I had asked this question where essentially I had a Spring @RestController accepting JSON payloads of unknown form/structure and I needed a data model to handle it.
The recommended approach was to use a Jackson JsonNode as my data... more
»

The same project works well with another system with same versions.
But when i import my project and execute it. I am facing this issue . After running entire project atlast am getting this error.
And I am totally confused with this error.Without an... more
»

REST API - DTOs or not?
I would like to re-ask this question in Microservices' context. Here is the quote from original question.
I am currently creating a REST-API for a project and have been reading
article upon article about best practices.... more
»

I'm using spring-mvc to create servlets like:
@RestController
public class MyServlet {
@GetMapping("/test")
public MyRsp test(MyReq req) {
//...
}
}
Now if the user accesses the root of my app localhost:8080/my-app, it should sho... more
»

I have around a 250MB request body that I need to http PUT in Spring 4. I was thinking that the Jackson Streaming API might be a good way to handle this large body since I am getting OOM issues. I only need this to be enabled for a single endpoint.... more
»

I have a controller that returns ResponseEntity. Now I have altered this code and added a bunch of filters using ObjectMapper. After this change I am returning a String as the response.
Sample code below:
public ResponseEntity<String> search(... more
»

In our application user can write a message based on user id or screen name.
class Message {
public final Long userId;
public final String screenName;
public final String text;
@JsonCreator
public Message(@JsonProperty(value = "... more
»

I have found this two:
Jackson Object Mapper in spring MVC not working
why is the Object Mapper date fromat not used by message converters for date transform?
but none are the solution for me.
Spring MVC xml:
<mvc:annotation-driven>
&l... more
»

I am getting the error while creating the new maven project on clicking on
finish it's give error as
While click on details it's show java.lang.NullPointerException. Please help
Failed to create project.
java.lang.NullPointerException``
St... more
»

Recent Questions

I am hosting my website on PythonAnywhere.
I have two databases on the service: myusername$production and myusername$dev.
The production db backs itself up every night and loads the dev database with the most recent batch of live data. I am tryin...

There are multiple files in /opt/dir/ABC/ named allfile_123-abc allfile_123-def allfile_123-ghi allfile_123-xxx.
I need the files to be named new_name-abc.pgp new_name-def.pgp new_name-ghi.pgp new_name-xxx.pgp and then moved to /usr/tst/output
for ...

I'm trying to save some XML(UBL) documents into Marklogic 8 with date formatting incorrect like this:
<cbc:IssueDate>2017-06-32</cbc:IssueDate>
I'm using Java API to save it but can't save because of the next exception:
Server Mess...

In my project I want to manage 3 repositories:
PARENT
CHILD1
CHILD2
The reason I'm not using only one PARENT repository that contains CHILD1+CHILD2 is that CHILD1\2 can be used in other projects also.
In a specific stage I want to tag all 3 reposi...

Although there are several similar questions here (e.g., SVN - Reintegration Merge error: "must be ancestrally related") and on the Web, I wasn't able to figure out why svn mergeinfo <file> causes an error in all of my SVN repositories. In cont...