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

                            主站蜘蛛池模板: www.一区二区三区 | 日韩av第一页| 亚洲性人人天天夜夜摸 | 日韩精品一区二区三区在线观看 | 日本黄色一级片视频 | 操久久 | 日本一区二区高清视频 | 福利片在线看 | 久久久久久亚洲精品 | 日本特黄a级高清免费大片 国产精品久久性 | 久综合 | 一二三四在线视频观看社区 | 午夜性色a√在线视频观看9 | a黄视频| 国产午夜精品久久久久免费视高清 | 国产成人精品999在线观看 | 欧美一区精品 | 亚洲三级视频 | 一区二区视频在线 | 欧美三级视频在线观看 | 久久香焦 | 日本一区二区三区精品视频 | 欧美成人精品 | 国产99视频精品免费播放照片 | 91精品国产色综合久久 | 欧美一区二区三区四区在线 | 欧美性大战久久久久久久蜜臀 | 国产探花 | 天天综合网天天综合 | 日韩成人高清 | 你懂的在线视频播放 | 久久99深爱久久99精品 | 三级黄色大片网站 | 久久精品91 | 日韩av高清 | 日韩国产一区 | 国产成人精品午夜 | 第一区在线观看免费国语入口 | 人妖一区 | 精品久久久久久久 | 激情av网站|