Results 1 to 3 of 3

Thread: Regarding creation of bean.

  1. #1

    Default Regarding creation of bean.

    Hi All,

    I wish to create a bean for the (following) ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper). Can anyone kindly tell me, how should I do this..?

    Code:
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);
    Thanks,
    Vivek

  2. #2
    Join Date
    Dec 2010
    Location
    Singapore
    Posts
    287

    Default

    What is the issue you are facing creating a bean of this class?
    Amila Domingo

  3. #3

    Default

    Hi amiladomingo,

    Thanks for responding.

    Here, as you can see configure() method is called unlike conventional way of setting properties.

    So, what I exactly need is code (XML way) for creating a bean for ObjectMapper?
    Last edited by vivek4348; Feb 19th, 2013 at 08:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •