admin管理员组

文章数量:1602097

在mapper.xml文件里,我们可能需要用到别名,需要在yml进行配置:

mybatis:
  mapper-locations: classpath:mapper/*.xml  //xml所在位置路径
  type-aliases-package: com.jinqiao.user.domain  //实体类路径
  configuration:
    map-underscore-to-camel-case: true

按道理配置成功,但是没有生效!

原因可能是,是我们之前用过一个插件:mybatis-plugn
我们可以关闭这个插件,然后重启,就能使别名生效了!


成功生效!

本文标签: 别名文件ymlconstructionInfo