久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <tfoot id='AYICV'></tfoot>

      <i id='AYICV'><tr id='AYICV'><dt id='AYICV'><q id='AYICV'><span id='AYICV'><b id='AYICV'><form id='AYICV'><ins id='AYICV'></ins><ul id='AYICV'></ul><sub id='AYICV'></sub></form><legend id='AYICV'></legend><bdo id='AYICV'><pre id='AYICV'><center id='AYICV'></center></pre></bdo></b><th id='AYICV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='AYICV'><tfoot id='AYICV'></tfoot><dl id='AYICV'><fieldset id='AYICV'></fieldset></dl></div>
      <legend id='AYICV'><style id='AYICV'><dir id='AYICV'><q id='AYICV'></q></dir></style></legend>

      1. <small id='AYICV'></small><noframes id='AYICV'>

          <bdo id='AYICV'></bdo><ul id='AYICV'></ul>

        如何創建作為一組杰克遜注釋的注釋?

        How to create an annotation that is a group of Jackson annotations?(如何創建作為一組杰克遜注釋的注釋?)

              <tfoot id='ajiwZ'></tfoot>
                <tbody id='ajiwZ'></tbody>

              <i id='ajiwZ'><tr id='ajiwZ'><dt id='ajiwZ'><q id='ajiwZ'><span id='ajiwZ'><b id='ajiwZ'><form id='ajiwZ'><ins id='ajiwZ'></ins><ul id='ajiwZ'></ul><sub id='ajiwZ'></sub></form><legend id='ajiwZ'></legend><bdo id='ajiwZ'><pre id='ajiwZ'><center id='ajiwZ'></center></pre></bdo></b><th id='ajiwZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ajiwZ'><tfoot id='ajiwZ'></tfoot><dl id='ajiwZ'><fieldset id='ajiwZ'></fieldset></dl></div>
            1. <legend id='ajiwZ'><style id='ajiwZ'><dir id='ajiwZ'><q id='ajiwZ'></q></dir></style></legend>
                <bdo id='ajiwZ'></bdo><ul id='ajiwZ'></ul>

                  <small id='ajiwZ'></small><noframes id='ajiwZ'>

                • 本文介紹了如何創建作為一組杰克遜注釋的注釋?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  大約一年后,我讀了一篇文章,解釋了如何創建一個基本上是其他注釋容器的注釋.這樣,如果我總是在特定用例中使用相同的 5 個注解,我會創建一個包含它們的注解并改為使用它.

                  A year or so I read an article that explained how I could create an annotation that basically is a container for other annotations. This way if I always use the same 5 annotations in a specific use-case I create an annotation that contains them and use that instead.

                  很遺憾,我再也找不到這篇文章了,我很想現在就為我的 jackson 配置做這篇文章.

                  Unfortunately, I can't find the article anymore and would really like to do that right now for my jackson configuration.

                  由于我自己找不到任何相關信息,我開始質疑我的記憶力.這是可能的還是我錯了?

                  Since I can't find any information on that on my own I'm beginning to question my memory. Is this possible or I am just wrong?

                  編輯

                  我想要的是這樣的:

                  @Target(ElementType.METHOD)
                  @com.fasterxml.jackson.databind.annotation.JsonSerialize(using=MySerializerThatIsUsedEverywhere.class
                  @javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter(MyCustomXmlAdapter.class)
                  @SomeOtherEvaluatedByTheSerializer
                  public @interface SerializerUseCase01 {
                      public String a();
                      public int b();
                  )
                  

                  我的場景是我有一堆序列化用例,可以由具有不同配置的相同序列化程序處理.為了讓一切更容易使用和更透明,我想將 jackson 配置和序列化器配置包裝到一個注釋中.

                  my scenario is that i have a bunch of serialization use cases that can be handled by the same serializer with different configs. To make everything easier to use and more transparent i want to wrap the jackson config and the serializer config into one annotation.

                  推薦答案

                  對于 Jackson,這可以通過 @JacksonAnnotationsInside 元注釋來完成.有關更多信息,請參閱這篇文章,但其中的代碼片段是:

                  For Jackson, this can be done with @JacksonAnnotationsInside meta-annotation. See this article for more, but code snippet from there is:

                  @Retention(RetentionPolicy.RUNTIME) // IMPORTANT
                  @JacksonAnnotationsInside
                  @JsonInclude(Include.NON_NULL)
                  @JsonPropertyOrder({ "id", "name" }) 
                  public @interface MyStdAnnotations
                  

                  從那時起,您可以將這種類型用于您自己的類,如下所示:

                  and from thereon you can use this type for your own classes like so:

                  @MyStdAnnotations
                  public class MyBean {
                     public String name, id;
                  }
                  

                  這篇關于如何創建作為一組杰克遜注釋的注釋?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  quot;Char cannot be dereferencedquot; error(“Char 不能被取消引用錯誤)
                  Java Switch Statement - Is quot;orquot;/quot;andquot; possible?(Java Switch 語句 - 是“或/“和可能的?)
                  Java Replace Character At Specific Position Of String?(Java替換字符串特定位置的字符?)
                  What is the type of a ternary expression with int and char operands?(具有 int 和 char 操作數的三元表達式的類型是什么?)
                  Read a text file and store every single character occurrence(讀取文本文件并存儲出現的每個字符)
                  Why do I need to explicitly cast char primitives on byte and short?(為什么我需要在 byte 和 short 上顯式轉換 char 原語?)

                    • <i id='IkLwx'><tr id='IkLwx'><dt id='IkLwx'><q id='IkLwx'><span id='IkLwx'><b id='IkLwx'><form id='IkLwx'><ins id='IkLwx'></ins><ul id='IkLwx'></ul><sub id='IkLwx'></sub></form><legend id='IkLwx'></legend><bdo id='IkLwx'><pre id='IkLwx'><center id='IkLwx'></center></pre></bdo></b><th id='IkLwx'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='IkLwx'><tfoot id='IkLwx'></tfoot><dl id='IkLwx'><fieldset id='IkLwx'></fieldset></dl></div>

                      <small id='IkLwx'></small><noframes id='IkLwx'>

                        <legend id='IkLwx'><style id='IkLwx'><dir id='IkLwx'><q id='IkLwx'></q></dir></style></legend>

                            <tbody id='IkLwx'></tbody>
                          <tfoot id='IkLwx'></tfoot>
                            <bdo id='IkLwx'></bdo><ul id='IkLwx'></ul>
                          • 主站蜘蛛池模板: 国产精品99久久久久久久久 | 欧美日韩国产一区 | 免费成人高清在线视频 | 欧洲妇女成人淫片aaa视频 | 久久久久亚洲精品 | 国产精品国产a | 自拍偷拍亚洲欧美 | 女同av亚洲女人天堂 | 国产aaaaav久久久一区二区 | 毛片久久久 | 亚洲欧美日韩在线 | av大片| 成人在线激情 | 在线观看免费福利 | 欧美 日韩 中文 | 97精品国产一区二区三区 | 亚洲精品麻豆 | 国产精品久久久久久久久久久久久 | 一区二区av| 日韩一区精品 | 97伦理最新伦理 | 特黄小视频 | 第一区在线观看免费国语入口 | 日韩在线播放网址 | 国产午夜精品一区二区三区四区 | 99re在线视频观看 | 亚洲av毛片 | 国产欧美一区二区三区在线看 | 日韩一区二区三区在线观看 | 久久免费福利 | 日本一级淫片免费啪啪3 | 国产激情视频在线观看 | 亚洲视频精品 | 91久操网| 成人精品一区二区三区 | 国产精品久久免费观看 | 久久99精品国产 | 亚洲一区 | 日本成人综合 | 久久久久久免费毛片精品 | 亚洲性人人天天夜夜摸 |