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

Spring Boot Support for MyBatis

License

License

Categories

Categories

Spring Boot Container Microservices Auto Application Layer Libs Code Generators config Configuration MyBatis Data ORM
GroupId

GroupId

io.github.munan56
ArtifactId

ArtifactId

mybatis-spring-boot-autoconfigure
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-autoconfigure

How to add to project

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

Dependencies

compile (10)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar
org.springframework.boot : spring-boot-configuration-processor Optional jar
org.mybatis : mybatis jar 3.5.1
org.mybatis : mybatis-spring jar 2.0.1
org.springframework : spring-jdbc jar
org.slf4j : slf4j-api Optional jar
org.springframework.boot : spring-boot-autoconfigure-processor Optional jar
org.apache.tomcat : tomcat-jdbc Optional jar
com.zaxxer : HikariCP jar
org.apache.commons : commons-dbcp2 Optional jar

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