Eclipse工具使用技巧

  1. maven项目来大姨妈的时候会粗线依赖包不能部署到tomcat的lib底下
    解决办法:项目->属性->Deployment Assembly->Add->Java Build Path Entries-> Maven Dependencies -> Finish ->OK
  2. Maven这坑爹玩意儿我敢说我不会用么,项目编译的时候xml等相关资源有时会诡异的丢掉,你大爷啊Mybatis里面的xml编译不到war包让哥玩蛋啊
    解决办法:pom文件的build结点加入一下代码
            <resources>
                <resource>
                    <directory>src/main/resources</directory>
                    <includes>
                        <include>*.properties</include>
                        <include>*.xml</include>
                    </includes>
                    <filtering>true</filtering>
                </resource>
                <resource>
                    <directory>src/main/java</directory>
                    <includes>
                        <include>**/*.properties</include>
                        <include>**/*.xml</include>
                    </includes>
                    <filtering>true</filtering>
                </resource>
    
            </resources>




你可能感兴趣的:(Eclipse工具使用技巧)