io.github.munan56:mybatis-spring-boot-starter

Spring Boot Support for MyBatis

License

License

Categories

Categories

Spring Boot Container Microservices MyBatis Data ORM
GroupId

GroupId

io.github.munan56
ArtifactId

ArtifactId

mybatis-spring-boot-starter
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Boot Support for MyBatis

Download mybatis-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.munan56/mybatis-spring-boot-starter/ -->
<dependency>
    <groupId>io.github.munan56</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.munan56/mybatis-spring-boot-starter/
implementation 'io.github.munan56:mybatis-spring-boot-starter:1.0.0'
// https://jarcasting.com/artifacts/io.github.munan56/mybatis-spring-boot-starter/
implementation ("io.github.munan56:mybatis-spring-boot-starter:1.0.0")
'io.github.munan56:mybatis-spring-boot-starter:jar:1.0.0'
<dependency org="io.github.munan56" name="mybatis-spring-boot-starter" rev="1.0.0">
  <artifact name="mybatis-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.munan56', module='mybatis-spring-boot-starter', version='1.0.0')
)
libraryDependencies += "io.github.munan56" % "mybatis-spring-boot-starter" % "1.0.0"
[io.github.munan56/mybatis-spring-boot-starter "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter jar
io.github.munan56 : mybatis-spring-boot-autoconfigure jar 1.0.0

Project Modules

There are no modules declared in this project.

mutidata-boot-mybatis-starter

a BOOT stater for mybatis with multiple datasource

 <dependency>
  <groupId>io.github.munan56</groupId>
  <artifactId>mybatis-spring-boot-starter</artifactId>
  <version>1.0.0</version>
</dependency>

if you have multiple data ready to config, you should config like this:


multiple:
  mybatis:
    aaa:
      url: jdbc:mysql://localhost:3306/user?serverTimezone=UTC
      username: root
      password: admin123
      type: com.zaxxer.hikari.HikariDataSource
      driverClassName: com.mysql.cj.jdbc.Driver
      mapperScanPackage: 
      - com.github.munan56.boot.web.springwebdemo.mapper
    ccc:
      url: jdbc:mysql://localhost:3306/item?serverTimezone=UTC
      username: root
      password: admin123
      type: com.zaxxer.hikari.HikariDataSource
      driverClassName: com.mysql.cj.jdbc.Driver
      mapperScanPackage: 
      - com.github.munan56.boot.web.springwebdemo.a

if you have multiple data ready to config, you should config like this:

multiple:
  mybatis:
    aaa:
      url: jdbc:mysql://localhost:3306/user?serverTimezone=UTC
      username: root
      password: admin123
      type: com.zaxxer.hikari.HikariDataSource
      driverClassName: com.mysql.cj.jdbc.Driver
      mapperScanPackage: 
      - com.github.munan56.boot.web.springwebdemo.mapper
    ccc:
      url: jdbc:mysql://localhost:3306/item?serverTimezone=UTC
      username: root
      password: admin123
      type: com.zaxxer.hikari.HikariDataSource
      driverClassName: com.mysql.cj.jdbc.Driver
      mapperScanPackage: 
      - com.github.munan56.boot.web.springwebdemo.a

if you have multiple data ready to config, you should config like this:

multiple:
  mybatis:
    aaa:
      url: jdbc:mysql://localhost:3306/user?serverTimezone=UTC
      username: root
      password: admin123
      type: com.zaxxer.hikari.HikariDataSource
      driverClassName: com.mysql.cj.jdbc.Driver
      mapperScanPackage: 
      - com.github.munan56.boot.web.springwebdemo.mapper
    ccc:
      url: jdbc:mysql://localhost:3306/item?serverTimezone=UTC
      username: root
      password: admin123
      type: com.zaxxer.hikari.HikariDataSource
      driverClassName: com.mysql.cj.jdbc.Driver
      mapperScanPackage: 
      - com.github.munan56.boot.web.springwebdemo.a

if you have single datasouce to config ,you should config like this:

  mybatis:
    url: jdbc:mysql://localhost:3306/user?serverTimezone=UTC
    username: root
    password: admin123
    type: com.zaxxer.hikari.HikariDataSource
    driverClassName: com.mysql.cj.jdbc.Driver
    mapperScanPackage: com.github.munan56.boot.web.springwebdemo.mapper

Versions

Version
1.0.0
0.0.1