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

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

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

      如何使用@ComponentScan 注解掃描多個路徑?

      How to scan multiple paths using the @ComponentScan annotation?(如何使用@ComponentScan 注解掃描多個路徑?)

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

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

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

                <bdo id='QNN9A'></bdo><ul id='QNN9A'></ul>
                本文介紹了如何使用@ComponentScan 注解掃描多個路徑?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在使用 Spring 3.1 并使用 @Configuration@ComponentScan 屬性引導應用程序.

                I'm using Spring 3.1 and bootstrapping an application using the @Configuration and @ComponentScan attributes.

                真正的開始是用

                new AnnotationConfigApplicationContext(MyRootConfigurationClass.class);
                

                這個配置類被注釋了

                @Configuration
                @ComponentScan("com.my.package")
                public class MyRootConfigurationClass
                

                這很好用.但是我想更具體地了解我掃描的包,所以我嘗試了.

                and this works fine. However I'd like to be more specific about the packages I scan so I tried.

                @Configuration
                @ComponentScan("com.my.package.first,com.my.package.second")
                public class MyRootConfigurationClass
                

                但是這失敗了,錯誤提示我找不到使用 @Component 注釋指定的組件.

                However this fails with errors telling me it can't find components specified using the @Component annotation.

                我所追求的正確方法是什么?

                What is the correct way to do what I'm after?

                謝謝

                推薦答案

                @ComponentScan 使用字符串數組,像這樣:

                @ComponentScan uses string array, like this:

                @ComponentScan({"com.my.package.first","com.my.package.second"})
                

                當你只在一個字符串中提供多個包名時,Spring會將其解釋為一個包名,因此無法找到它.

                When you provide multiple package names in only one string, Spring interprets this as one package name, and thus can't find it.

                這篇關于如何使用@ComponentScan 注解掃描多個路徑?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 原語?)
                <tfoot id='PUWtF'></tfoot>
                  <tbody id='PUWtF'></tbody>
                  <bdo id='PUWtF'></bdo><ul id='PUWtF'></ul>
                  • <i id='PUWtF'><tr id='PUWtF'><dt id='PUWtF'><q id='PUWtF'><span id='PUWtF'><b id='PUWtF'><form id='PUWtF'><ins id='PUWtF'></ins><ul id='PUWtF'></ul><sub id='PUWtF'></sub></form><legend id='PUWtF'></legend><bdo id='PUWtF'><pre id='PUWtF'><center id='PUWtF'></center></pre></bdo></b><th id='PUWtF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PUWtF'><tfoot id='PUWtF'></tfoot><dl id='PUWtF'><fieldset id='PUWtF'></fieldset></dl></div>
                    1. <legend id='PUWtF'><style id='PUWtF'><dir id='PUWtF'><q id='PUWtF'></q></dir></style></legend>

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

                          主站蜘蛛池模板: 天天射中文 | 欧美激情精品久久久久久变态 | 久久999| 成人在线免费视频 | 91精品91久久久 | 日韩欧美在线视频 | 亚洲免费高清 | 超碰激情| 国产亚洲精品综合一区 | 国产精品观看 | 久久久噜噜噜久久中文字幕色伊伊 | 在线观看国产h | 亚洲天堂一区 | 亚洲免费精品 | 亚洲一区二区精品 | 日韩av在线免费 | 黑人性hd | 亚洲免费精品一区 | 在线看片网站 | 国产精品免费在线 | 四虎成人精品永久免费av九九 | 精品视频免费 | 亚洲97 | 亚洲一卡二卡 | 国产av毛片 | 中文字幕亚洲视频 | 能看的av| 爱爱视频网 | 亚洲成人三级 | 成人免费av | 亚洲精品久久久久久久久久久 | 免费一区二区三区 | 亚洲一区二区三区在线免费观看 | 日本精品一区二区三区在线观看 | av一级在线观看 | 久久久视 | 亚洲日日 | 浴室洗澡偷拍一区二区 | av影音资源| 国产成人福利在线观看 | 成人国产精品免费观看 |