Servlet.service() for servlet [e3-manager] in context with path [] threw exception [Request processi

在meven项目中如果出现这样的错误原因是java与xml最后生成的文件不再同一个文件夹下。需要在pom中配置

<!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->

<build>

<resources>

            <resource>

                <directory>src/main/java</directory>

                <includes>

                    <include>**/*.properties</include>

                    <include>**/*.xml</include>

                </includes>

                <filtering>false</filtering>

            </resource>

        </resources>

</build>

这样可以强行将两个文件放到同一个文件夹下,问题就解决了

猜你喜欢

转载自blog.csdn.net/zhangshuchuncsdn/article/details/80488305