mutidata-boot-mybatis-parent

Spring Boot Support for MyBatis

License

License

Categories

Categories

Data MyBatis ORM
GroupId

GroupId

io.github.munan56
ArtifactId

ArtifactId

mutidata-boot-mybatis-parent
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

mutidata-boot-mybatis-parent
Spring Boot Support for MyBatis
Project URL

Project URL

https://github.com/munan56/mutidata-boot-mybatis-starter
Source Code Management

Source Code Management

https://github.com/munan56/mutidata-boot-mybatis-starter

Download mutidata-boot-mybatis-parent

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • mybatis-spring-boot-autoconfigure
  • mybatis-spring-boot-starter

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