## $$ mybatis 还是 ibatis

发布时间 2023-06-01 16:31:24作者: zno2

http://ibatis.apache.org/docs/dotnet/datamapper/index.html

#value# 和 $value$ 是 ibatis 的用法

#{value} 和 ${value} 是 mybatis 的用法

 

Example 3.59. A dynamic element that changes the collating order

<statement id="getProduct" resultMap="get-product-result">
  select * from PRODUCT order by $preferredOrder$
</statement>

 

经查询公司的项目用的是ibatis 

      <dependency>
        <groupId>org.apache.ibatis</groupId>
        <artifactId>ibatis-sqlmap</artifactId>
        <version>2.3.4.726</version>
      </dependency>