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

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

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

      <tfoot id='FtJtF'></tfoot>
        • <bdo id='FtJtF'></bdo><ul id='FtJtF'></ul>
      1. 在 Maven 測試期間未找到 persistence.xml

        persistence.xml not found during maven testing(在 Maven 測試期間未找到 persistence.xml)

            <tbody id='nsNIc'></tbody>
            <bdo id='nsNIc'></bdo><ul id='nsNIc'></ul>

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

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

              1. <tfoot id='nsNIc'></tfoot>

                  本文介紹了在 Maven 測試期間未找到 persistence.xml的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在嘗試在 Maven 構建期間將測試數據加載到測試數據庫中以進行集成測試.persistence.xml 被正確復制到 target/test-classes/META-INF/,但是在運行測試時出現此異常.

                  I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to target/test-classes/META-INF/ correctly, but I get this exception when the test is run.

                  javax.persistence.PersistenceException:沒有持久性提供程序EntityManager 命名為目標數據庫

                  javax.persistence.PersistenceException: No Persistence provider for EntityManager named aimDatabase

                  它似乎沒有找到或加載persistence.xml.

                  It looks like it's not finding or loading persistence.xml.

                  推薦答案

                  剛剛用一個基于 Maven/Eclipse 的 JPA 項目解決了同樣的問題.

                  Just solved the same problem with a Maven/Eclipse based JPA project.

                  我的 META-INF 目錄位于 src/main/java 下,因為在測試階段之前它沒有復制到目標目錄.

                  I had my META-INF directory under src/main/java with the concequence that it was not copied to the target directory before the test phase.

                  將此目錄移動到 src/main/resources 解決了問題,并確保 META-INF/persistence.xml 文件存在于 target/classes 運行測試的時間.

                  Moving this directory to src/main/resources solved the problem and ensured that the META-INF/persistence.xml file was present in target/classes when the tests were run.

                  認為 JPA 方面將我的 META-INF/persistence.xml 文件放在 src/main/java 中,結果證明成為我問題的根源.

                  I think that the JPA facet put my META-INF/persistence.xml file in src/main/java, which turned out to be the root of my problem.

                  這篇關于在 Maven 測試期間未找到 persistence.xml的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

                  <legend id='2F4qb'><style id='2F4qb'><dir id='2F4qb'><q id='2F4qb'></q></dir></style></legend>

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

                            主站蜘蛛池模板: a毛片| 国产一级片网站 | 欧美一级在线免费观看 | 亚洲成人播放器 | 亚洲码欧美码一区二区三区 | 精品国产乱码久久久久久闺蜜 | 欧美精品91 | 91视频在线网站 | 国产女人叫床高潮大片免费 | 免费一级网站 | 午夜视频在线 | 亚洲欧美日韩精品久久亚洲区 | 中文字幕一区二区三区四区五区 | 国产免费视频 | 日韩高清中文字幕 | 婷婷99| 中文字幕成人 | 麻豆av在线 | 久久久久国产视频 | 一区欧美| 国产福利在线小视频 | 免费在线观看av网址 | 亚洲欧美在线一区 | 久久日韩粉嫩一区二区三区 | 视频一区二区在线观看 | 91久久国产综合久久 | 午夜视频一区 | 成人国产精品久久 | 欧美一区二区三区在线免费观看 | 国产性网| 免费在线视频一区二区 | 欧美日韩中文在线 | 国色天香综合网 | 欧美精品一区二区蜜桃 | 福利二区 | 在线免费看黄 | 亚洲一区二区综合 | 成人午夜| 欧美日韩一区精品 | 国产一区二区三区 | 日韩a在线|