在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mybatis-beetl-scripting开源软件地址:https://gitee.com/easybest/mybatis-beetl-scripting开源软件介绍:MyBatis Beetl SupportIntroductionmybatis-beetl is an extension that allows you to use the Beetl scripting language to generate your dynamic SQL queries on the fly. If you are not familiar with beetl, you can learn it from its documentation site: Install
<dependency> <groupId>com.ifrabbit</groupId> <artifactId>mybatis-beetl-scripting</artifactId> <version>1.0.3.RELEASE</version></dependency>
<configuration> ... <typeAliases> <typeAlias alias="beetl" type="org.mybatis.scripting.beetl.Driver"/> </typeAliases> ...</configuration>
<configuration> ... <settings> <setting name="defaultScriptingLanguage" value="beetl"/> </settings> ...</configuration> UsageJust write your dynamic queries and use beetl: Example: <select id="findPerson" lang="beetl"> SELECT * FROM person WHERE name LIKE #_parameter.name#</select> Contributing to MyBatis Beetl ScriptingHere are some ways for you to get involved in the community:
Help me better - Donation |
请发表评论