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

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

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

      2. <tfoot id='ahOUC'></tfoot>

      3. Spring:在屬性文件中定義 @RequestMapping 值

        Spring: define @RequestMapping value in a properties file(Spring:在屬性文件中定義 @RequestMapping 值)

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

              <tbody id='qnWLe'></tbody>

            <tfoot id='qnWLe'></tfoot>
              1. <small id='qnWLe'></small><noframes id='qnWLe'>

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

                1. 本文介紹了Spring:在屬性文件中定義 @RequestMapping 值的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  是否可以通過在屬性文件中定義 @RequestMapping 注釋在 Spring 中定義它的值?

                  Is it possible to define the value of a @RequestMapping annotation in Spring by defining it in a properties file?

                  實際上,我會這樣做:

                  @Controller
                  @RequestMapping("/xxx")
                  public class MyController {
                  ...
                  }
                  

                  但我想將路徑 /xxx 存儲在屬性文件中.為什么?例如,如果我在控制器中重命名路徑,我就不太可能在模板中做 mystakes.

                  But I would like to store the path /xxx in a properties file. Why? For instance, it is less likely that I do mystakes in my templates if I rename the path in the controller.

                  在其他框架中這是允許的(例如,參見 Symfony).

                  In other framework this is allowed (see Symfony, for instance).

                  推薦答案

                  應該可以在 @RequestMapping 中使用占位符,例如 @RequestMapping("${foo.bar}").看看 文檔了解更多詳情:

                  It should be possible to use placeholders in @RequestMapping, like for example @RequestMapping("${foo.bar}"). Take a look at the documentation for more details:

                  @RequestMapping 注釋中的模式支持針對本地屬性和/或系統屬性和環境變量的 ${... } 占位符.這在控制器映射到的路徑可能需要通過配置進行自定義的情況下可能很有用.有關占位符的更多信息,請參閱 PropertyPlaceholderConfigurer 類的 javadocs.

                  Patterns in @RequestMapping annotations support ${…?} placeholders against local properties and/or system properties and environment variables. This may be useful in cases where the path a controller is mapped to may need to be customized through configuration. For more information on placeholders, see the javadocs of the PropertyPlaceholderConfigurer class.

                  這篇關于Spring:在屬性文件中定義 @RequestMapping 值的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 原語?)
                2. <i id='cPnjY'><tr id='cPnjY'><dt id='cPnjY'><q id='cPnjY'><span id='cPnjY'><b id='cPnjY'><form id='cPnjY'><ins id='cPnjY'></ins><ul id='cPnjY'></ul><sub id='cPnjY'></sub></form><legend id='cPnjY'></legend><bdo id='cPnjY'><pre id='cPnjY'><center id='cPnjY'></center></pre></bdo></b><th id='cPnjY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cPnjY'><tfoot id='cPnjY'></tfoot><dl id='cPnjY'><fieldset id='cPnjY'></fieldset></dl></div>

                    • <tfoot id='cPnjY'></tfoot>

                        • <bdo id='cPnjY'></bdo><ul id='cPnjY'></ul>

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

                              <tbody id='cPnjY'></tbody>
                            <legend id='cPnjY'><style id='cPnjY'><dir id='cPnjY'><q id='cPnjY'></q></dir></style></legend>
                            主站蜘蛛池模板: 精品一区精品二区 | 欧美一级二级三级视频 | 一级欧美黄色片 | 久久久精品一区 | 精国产品一区二区三区四季综 | 日韩中文字幕在线观看视频 | 国产欧美一区二区三区日本久久久 | 九九热在线精品视频 | av免费电影在线 | 天堂在线免费视频 | 亚洲精品日韩综合观看成人91 | 精品国产一区二区三区免费 | 欧美一区二区三区视频 | 亚洲天堂一区二区 | 亚洲一二三区av | 久久久久网站 | 日韩国产黄色片 | 精品一区二区三区免费视频 | 亚洲视频免费在线观看 | 色视频成人在线观看免 | 欧美午夜激情在线 | 18性欧美| 伊人热久久 | 亚洲国产成人精品久久久国产成人一区 | 国产精品视频一二三 | 国产污视频在线 | 一区精品在线观看 | 亚洲精品v | 天天影视色综合 | 欧美.com| 亚洲免费人成在线视频观看 | 视频一区二区在线观看 | 亚洲视频在线看 | 欧美成年人视频在线观看 | 亚洲精品日韩一区二区电影 | 亚洲第一av| 福利视频一区二区 | 欧美精品一区二区在线观看 | 欧美日韩综合视频 | 逼逼视频| 午夜免费视频 |