Fusion Mybatis 配置
fusion.mybatis {
default = {
fusion-jdbc-source = fusion.jdbc.default
configuration {
package-names = ["fusion.mybatis.mapper"]
}
}
}
fusion-mybatis
依赖fusion-jdbc
,需要通过fusion-jdbc-source
配置来指定引用的FusionJdbc
,配置如下:
fusion.jdbc {
default {
poolName = "fusion"
jdbcUrl = "jdbc:postgresql://localhost:55432/fusion_dev"
username = "devuser"
password = "devPass.2019"
connectionTestQuery = "select 1;"
maximumPoolSize = 2
autoCommit = true
}
}
2.0.6