zoukankan      html  css  js  c++  java
  • Mybatis踩过的坑(随着逐步了解,慢慢更新)

    坑一:idea集成开发环境默认只有Rescources可以读取.xml文件,因此当写mybatis的实现接口配置文件(**.xml)时会报:无法找到接口配置配置文件错误

    方法1:将**.xml放入Rescources包中,就可以读取到了,但缺点是层次结构就会被打乱

    方法2:在pom.xml中配置如下代码

       缺点:Rescources可能会出现无法识别.xml(目前被人没有遇到),解决方法,在build中载写一个resources标签里面主要内容:src/main/resources **/*.xml,就可以开启读取.xml权限了

        <build>
            <resources>
                <!--将java代码目录中的xml输出,默认不输出除resources目录外的xml文件,-->
                <resource>
                    <directory>src/main/java</directory>
                    <includes>
                        <include>**/*.xml</include>
                    </includes>
                </resource>
            </resources>
        </build>

  • 相关阅读:
    走迷宫(三):在XX限制条件下,是否走得出。
    ELMo
    BERT
    ARNOR 远程关系监督抽取
    谷歌T5
    seq2seq
    Attention Is All You Need(Transformer)
    attention的实现
    RNN
    test
  • 原文地址:https://www.cnblogs.com/CL-King/p/13860922.html
Copyright © 2011-2022 走看看