MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    使用Mybatis时找不到配置文件

    开发交流
    2
    5
    411
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mashirot last edited by

      如图所示,同样的写法在Maven构建下没问题,怀疑是Gradle的问题,但没找到解决方案,求助
      环境:
      65e200e3-0ace-4344-8fcb-5c4d97ae1cc5-image.png
      Gradle构建后文件在根目录,但是报错无法找到,尝试过 /resources/mybatis-config.xml 问题一样
      3cec0044-f594-4f61-85fe-ddd4ddb48ea3-image.png
      01e23e69-3641-48ef-8c40-3fcb994a047c-image.png
      bdfe3054-618e-4f0b-b105-f25118f450e9-image.png

      1 Reply Last reply Reply Quote 0
      • cssxsh
        cssxsh last edited by

        你需要手动指定一下 classloader

        或者你可以懒一点 直接切换线程的上下文 classloader

        M 2 Replies Last reply Reply Quote 0
        • cssxsh
          cssxsh last edited by

          https://mirai.mamoe.net/topic/353

          1 Reply Last reply Reply Quote 0
          • M
            mashirot @cssxsh last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • M
              mashirot @cssxsh last edited by

              @cssxsh 红豆泥阿里嘎多orz

              1 Reply Last reply Reply Quote 0
              • Referenced by  Y Yuanning 
              • 1 / 1
              • First post
                Last post
              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact