Comments (3)
@sharanguia
Location pattern must not be null
需要指定配置mybatis
中的mapper-Locations
参数
mybatis:
mapper-Locations: classpath:/mapper/**/*.xml
from fastdep.
还是一样的报错
server:
port: 8081
spring:
#redis配置
redis:
database: 0
host: 127.0.0.1
lettuce:
pool:
max-active: 8 #最大连接数据库连接数,设 0 为没有限制
max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
shutdown-timeout: 100ms
password: ''
port: 6379
#mybatis plus设置
mybatis-plus:
type-aliases-package: com.iwhalecloud.yunnan.interfacepro.entity
mapper-locations: classpath:mapper/*.xml
global-config:
banner: false
db-config:
#主键类型
id-type: auto
# 默认数据库表下划线命名
table-underline: true
configuration:
map-underscore-to-camel-case: true
# 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
#日志配置
logging:
level:
com.iwhalecloud.yunnan.interfacepro.mapper: debug
fastdep:
datasource:
test: #数据源名称可随意取
mapper: com.louislivi.fastdep.test.mapper.test #当前数据源对应的mapper目录不能多个数据源相同
password: scott
url: jdbc:oracle:thin:@127.0.0.1:1521:orcl
driverClassName: oracle.jdbc.OracleDriver
username: WSPE
# 下面为druid连接池的补充设置
initialSize: 10
minIdle: 10
maxActive: 100
connectionInitSqls: SELECT 1 FROM DUAL
from fastdep.
classpath:/mapper/**/*.xml
指定层级不对,因为还有一层目录用于区分mapper数据源。
from fastdep.
Related Issues (20)
- 只能配置两个redis数据源,我配置了五个,启动报错 HOT 9
- fastdep-shiro-jwt 如何集成redis缓存 HOT 1
- redis 多数据源指定的configuration 配置就不生效了, 能够有解决方法吗? HOT 2
- 连接泄露,请教一下分布式事务的配置是否有问题 HOT 8
- 是不是得先配置redis环境呢? 我跑起来报错 HOT 2
- 文件上传和下载模块 遇到问题 HOT 1
- 全局事务失效 HOT 2
- fastdep-shiro-jwt 怎么在controller 拿到 用户id信息 HOT 2
- 是否支持 jdk1.7 springboot 1.x
- WARN 20240 --- [nio-8081-exec-2] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.mapper.OrderMapper.selectPage]
- fastdep-shiro-jwt 缓存不了用户信息
- 官网文档中关于fastdep-shiro-jwt的示例代码有点小问题 HOT 3
- 请问引入包后的后续操作在哪儿呀? HOT 2
- WARNING: transaction manager not running? HOT 1
- fastdep-datasource连接sqlserver数据库数据库事务不生效 HOT 1
- fastdep-redis集群情况下如何链接
- 这样配置可以自动注入正确的数据源吗?is that right?
- fastdep-datasource 不支持 mybatis 的 interceptor?
- 集群支持
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdep.