<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                首先在父模塊當中的pom.xml當中**增加mybatis相關的依賴** ![](https://img.kancloud.cn/dc/f6/dcf6883262183e9ea339afe0d0396ebc_1865x655.png) ### 然后因為所有的子模塊都需要加載common公共模塊所以在common公共模塊增加沒有版本號的依賴 ### ![](https://img.kancloud.cn/a9/ef/a9ef73b569798b3af445153fa4165191_1874x641.png) ### 重點**需要注意的是mybatis依賴的版本號** ![](https://img.kancloud.cn/34/af/34af03a3e2e213feb946dfd8ab449ea3_812x322.png) ### **在子模塊當中配置數據庫連接信息以及要掃描的mapper的xml路徑以及打印sql日志** ![](https://img.kancloud.cn/a7/b6/a7b6d1f8d2d9d94d44511ef0ced2c05d_1892x539.png) ### 另外**在啟動文件當中我們還得需要指定具體的mapper的掃描路徑** ### ![](https://img.kancloud.cn/de/b4/deb463193b565a3b760a7b9c73976403_1900x617.png) ### 然后去**創建mapper** ![](https://img.kancloud.cn/15/51/15510ef0355b37d43e1abe6465c92c90_1012x647.png) ### ![](https://img.kancloud.cn/cb/cd/cbcda7261353280a67001fbcc63a428d_1301x609.png) ### **創建了mapper以及對應的xml 如何在idea當中讓他們彼此關聯起來呢**?即 ![](https://img.kancloud.cn/1e/75/1e75f6bb481a195f7552f1ffe50f5692_1033x588.png) ### 只需要**在idea當中安裝這個插件**即可: ![](https://img.kancloud.cn/93/79/9379e0e13c1bc40de8ea33cdb7a91a00_962x433.png) ### 然后就是**創建service** ![](https://img.kancloud.cn/15/76/15768ead702b4a7915b048674e27e051_947x991.png) ### 平時我們都是使用@Autowired加載依賴的類這次我們可以使用@Resource也一樣 ### 然后就是**創建controller** ![](https://img.kancloud.cn/5e/a9/5ea96df9892bb0d5a4c1b9432471055d_1039x827.png) ### ![](https://img.kancloud.cn/a7/a2/a7a28438005732a180e748f1498f7096_1177x453.png) ### ![](https://img.kancloud.cn/c2/cc/c2cc4c76be4f883d30f9f9d575150600_1886x979.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看