Spring Boot Difference with Date

Upgraded my product from spring framework to spring boot. It is using json Parser from fasterxml.jackson. Unit tests having date comparison are failing now. Expected time is 2098-12-31T00:00:00.000Z but actual is 2098-12-30T15:00:00.000Z My ...
more »

2017-04-06 07:04 (1) Answers

NoClassDefFoundError and ClassNotFoundException

I am using Eclipse and I have configured all the jars required for Spring Framework, it don't show any compilation error. But, when I run my main function(Test Class) it populates me this error. Am I missing something here? Please help me, could not ...
more »

2017-02-26 21:02 (1) Answers

Java to Jackson Serialization : BigDecimal field

Is there any way to prevent Jackson from auto truncating the leading zeros in a BigDecimal without converting the value to String while Serializing? I need to achieve this as the input type is a number in the HTML. I tried using Custom Serializer...
more »

2017-02-17 15:02 (0) Answers

Spring MVC 4 + Jackson + LocalDate

I am using Spring MVC 4 with Jackson API for databinding and I am having some issues while using Java 8 Dates, like LocalDate and LocalTime. Here is my Ajax: var response = $.ajax({ url: 'parcela', method: 'POST', data: { formaPagamentoPrazo: t...
more »

2017-02-13 18:02 (1) Answers

Use custom jackson mapper on spring boot endpoints

I want to use different jackson ObjectMapper instance ( instead of the one used on other mapped urls ) on endpoints derived from AbstractEndpoints. To clarify the question, I don't want to change or customise the object mapper which is used by diff...
more »

2017-02-10 14:02 (2) Answers

Why the POST request becomes a GET request?

When I use jQuery's $.ajax() or $.post() method to send form information to server, the 'data' string is added to the end of the url. Why the POST request becomes a GET request? The form code shown below <form role="form" class="form-horizontal"&...
more »

2017-01-20 08:01 (1) Answers

Spring MVC bind on a typed field

I have a Spring MVC controller like this: @RequestMapping(value = "/search", method = RequestMethod.GET) @ResponseBody public Object grid(Search<MyFilter> search){ ... } My Search object is like: public class Search<...
more »

2017-01-12 17:01 (2) Answers