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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 參數名稱 對于模板SQL來說,參數名稱非常重要,如果是JDK8,且編譯選項(或者maven配置)里啟用了parameters參數,則BeetlSQL3能自動識別參數名。如果沒有啟用parameters,則需要使用@Param注解說明參數名稱 ```java @Template("select * from sys_user where id = #{id}") UserEntity getUserById(@Param("id") Integer userId); ``` 如果方法只有一個POJO類,那么該POJO的所有屬性作為模板的參數 ```java @Template("select * from sys_user where id = #{id}") UserEntity getUserById(User user); ``` 或者 ```java @Template("select * from sys_user where id = #{id}") UserEntity getUserById(@Root User user); ``` 效果是一樣的 @Root 修飾的POJO對象的屬性,都可以直接在模板里訪問 ```java @Template("select * from sys_user where id = #{id} and status=#{myStatus}") UserEntity getUserById(Integer myStatus,@Root User user); ``` > 當參數識別為root,那么調用sqlManger時候,傳入的是`_root` 為key,pojo為value的Map 注意,在maven打包的時候,同樣需要啟用paramters (maven不同版本,此配置方式略有不同,一般不需要配置parameter) ```xml <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <!-- define the project compile level --> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <compilerArgs> <arg>-parameters</arg> </compilerArgs> </configuration> </plugin> </plugins> </build> ```
                  <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>

                              哎呀哎呀视频在线观看