Code Monkey home page Code Monkey logo

Comments (3)

louislivi avatar louislivi commented on July 23, 2024

@sharanguia
Location pattern must not be null
需要指定配置mybatis中的mapper-Locations参数

mybatis:
  mapper-Locations: classpath:/mapper/**/*.xml

from fastdep.

sharanguia avatar sharanguia commented on July 23, 2024

还是一样的报错
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.

louislivi avatar louislivi commented on July 23, 2024

@sharanguia

classpath:/mapper/**/*.xml

指定层级不对,因为还有一层目录用于区分mapper数据源。

from fastdep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.