Git Product home page Git Product logo

thymeleaf-scripting's Introduction

MyBatis Thymeleaf 3 Support

Build Status Coverage Status Maven central Sonatype 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 names
  WHERE id = /*[# mb:p="id"]*/ 1 /*[/]*/

Dynamic bindable 2-way SQL

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

Dynamic bindable SQL(non 2-way)

SELECT * FROM names
  WHERE 1 = 1
  [# th:if="${not #lists.isEmpty(ids)}"]
    AND id IN (
      [# 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 the mailing list or the Stack 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 the issue tracker.

IMPORTANT:

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

thymeleaf-scripting's People

Contributors

kazuki43zoo avatar hazendaz avatar harawata avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.