What happened to JAXB's NamespacePrefixMapper in JDK6u18

后端 未结 7 951
粉色の甜心
粉色の甜心 2020-12-08 19:44

I\'ve been using com.sun.xml.bind.marshaller.NamespacePrefixMapper in my project, and i had no problem with it in JDK 6u17. Now I just updated to 6u18, and I sa

7条回答
  •  旧巷少年郎
    2020-12-08 20:32

    The below post at stack overflow answers the question: Define Spring JAXB namespaces without using NamespacePrefixMapper

    Key is to include the rt.jar at build time and remove it from the application after compilation.

提交回复
热议问题