mybatis系列十二:動態sql的註解配置

  動態sql也能夠採用註解來完成html 註解對應的sql類型以下所示java 一  先重點來關注查詢,用註解進行動態sql查詢有兩種方式sql 用script標籤包圍,而後像xml語法同樣書寫 @Select({ "<script>", "select * From student where 1=1", "<when test='gender!=null'>", "and g
相關文章
相關標籤/搜索