久久久久久久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'>

                          主站蜘蛛池模板: 人人叉 | 四虎在线播放 | 欧美在线a | 亚洲精品一区二区在线观看 | www.日韩在线 | 天堂资源| 国产精品揄拍一区二区 | 精品日韩一区二区 | 久久九九99 | 亚洲精品91 | 欧美另类视频 | 91精品国产综合久久久久久丝袜 | 亚洲欧美成人影院 | 成人免费三级电影 | 免费毛片在线 | 国产粉嫩尤物极品99综合精品 | 成人一区二区三区在线 | 日韩国产精品一区二区三区 | 午夜小电影 | 亚洲电影专区 | av性色| 国产在线不卡 | 国产成人精品一区二区 | 毛片一区| 在线观看黄免费 | 国产精品日日夜夜 | 九九热热九九 | 亚洲免费片 | 久久99精品久久久久久国产越南 | 99re在线| 亚洲一区二区三区观看 | 亚洲中午字幕 | 亚洲精色 | 久草视频在线播放 | 成年人网站在线观看视频 | 亚洲成av人片在线观看无码 | 国产视频亚洲视频 | 欧美一级二级三级视频 | 免费中文字幕日韩欧美 | 亚洲国产成人在线 | 国产精品久久久久久久久久免费看 |