Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3672770
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:39:00+00:00 2026-05-19T02:39:00+00:00

I am writing a RESTful web service using JAXB and Spring MVC. In my

  • 0

I am writing a RESTful web service using JAXB and Spring MVC. In my Spring context takes care of a lot of helpful stuff for me, but it registers its own JAXB marshaller and I can’t find a way to add properties to it (like a NamespacePrefixMapper or schema location).

Is there a way to override the default marshaller configured in or set properties on it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:39:01+00:00Added an answer on May 19, 2026 at 2:39 am

    <mvc:annotation-driven> is essentially a “macro” that registers a bunch of fixed config options. You can see what it does in the source of the rather dense AnnotationDrivenBeanDefinitionParser class.

    Of particular interest here is that it registers a AnnotationMethodHandlerAdapter and injects a whole series of components into it, some of which you’ll need, many of which you won’t.

    <mvc:annotation-driven> doesn’t offer much in the way of customisation, though, so if you want to change what it does, you need to remove it from your context, and declare your own AnnotationMethodHandlerAdapter, configured the way you want.

    The JAXB marshaller is injected into the messageConverters property of AnnotationMethodHandlerAdapter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a RESTful web service using ASP.NET MVC 3. I am using
I am writing a Spring Restful webservices application using Spring MVC. I have used
I am writing a RESTful web service using Java and Jersey, where the service
I writing a small restful web service using Zend_Framework. I want to support the
I'm writing some JUnit-based integration tests for a RESTful web service using JerseyTest. The
I'm writing an iPhone app that interacts with a RESTful web service, and I
I am writing a RESTful web service where in I want to return a
I am writing a Spring Restful Web Services Project. I need to write secure
I am writing a RESTful web application with Spring 3, and part of my
I am writing an Android application that interfaces with a RESTful service. This web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.