springboot整合mybatis时异常
问题描述
mybatis:
mapper-locations: classpath:**/*.xml #这个可以使用
#mapper-locations: classpath:mappeer/*.xml #这个不行
相关配置文件信息
#datasource
spring:
datasource:
url: jdbc:mysql://localhost:3306/javaee?serverTimezone=UTC
username: root
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
##mybatis配置
mybatis:
mapper-locations: classpath:**/*.xml
#mapper映射文件
type-aliases-package: com.example.pojo
#设置别名
userMapper.xml 位置
src/main/resources/mapper/UserMapper.xml
我想要达到的结果
mybatis.mapper-locations= classpath:mapper/*.xml 如何和这样配置也是可以