Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Thymeleaf scripting plugin for MyBatis

License

NotificationsYou must be signed in to change notification settings

mybatis/thymeleaf-scripting

Repository files navigation

Java CICoverage StatusMaven centralSonatype Nexus (Snapshots)License

thymeleaf-scripting

MyBatis Thymeleaf 3 Scripting Support.

Introduction

The mybatis-thymeleaf is a plugin that helps applying a SQL using template provided by Thymeleaf 3.If you are not familiar with Thymeleaf 3 syntax, you can see the Thymeleaf documentations.

Simple bindable 2-way SQL

SELECT*FROM namesWHERE id=/*[# mb:p="id"]*/1/*[/]*/

Dynamic bindable 2-way SQL

SELECT*FROM namesWHERE1=1/*[# th:if="${not #lists.isEmpty(ids)}"]*/AND idIN (/*[# mb:p="ids"]*/1/*[/]*/    )/*[/]*/ORDER BY id

Dynamic bindable SQL(non 2-way)

SELECT*FROM namesWHERE1=1  [# th:if="${not #lists.isEmpty(ids)}"]AND idIN (      [# mb:p="ids" /]    )  [/]ORDER BY id

Requirements

  • Java 8, Java 11+
  • MyBatis 3.4.3+ (Recommend to use 3.5+ or 3.4.x latest version)
  • Thymeleaf 3.0+ (Recommend to use 3.0.x latest version)

Documentation

Related Resources

Contact us

Question

When there is a question, at first please confirm whether exists same question at following web sites.

If you cannot find a same question, please post new question to themailing list or theStack Overflow.

Report and Request

When you found a bug or want to submit a feature request(new feature or current feature improvement), at first please confirm whether exists same bug or request at following pages.

If you cannot find a same report or request, please post new issue to theissue tracker.

IMPORTANT:

When you found a security vulnerability, at first please report it to themybatis organization members instead of issue tracker.

About

Thymeleaf scripting plugin for MyBatis

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp