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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                **1.AccountMapper.java** ~~~ Account findById(int id); ~~~ **2.AccountMapper.xml** ~~~ <resultMap id="accountMap2" type="Account"> <id property="id" column="id"></id> <result property="money" column="money"></result> <!-- association: 表示要封裝一個對象類型的屬性 property: 屬性名 javaType: 屬性對應的Java類型 select: 訪問該屬性時,執行什么查詢獲得該屬性 column: 執行select屬性指定的查詢時,使用哪一列的值作為參數 fetchType: 加載策略選擇 --> <association property="user" javaType="User" select="com.nobb.mapper.UserMapper.findById" column="uid" fetchType="lazy"> </association> </resultMap> <select id="findById" resultMap="accountMap2"> select * from account where id = #{id} </select> ~~~ **3.UserMapper.java** ~~~ User findById(int id); ~~~ **4.UserMapper.xml** ~~~ <resultMap id="userMap11" type="User"> <id property="id" column="u_id"></id> <result property="name" column="u_name"></result> <result property="password" column="u_password"></result> </resultMap> <!--查詢語句--> <select id="findById" resultMap="userMap11" parameterType="int"> select * from t_user where u_id = #{id} </select> ~~~ **5.測試語句** ~~~ @Test public void testFindById1(){ AccountMapper mapper = session.getMapper(AccountMapper.class); System.out.println(mapper.findById(1)); } ~~~
                  <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>

                              哎呀哎呀视频在线观看