idea显示如下错误
配置文件value可以这样写
<property name="mapperLocations" value="com/yi/mapper/Usermapper.xml"/>
另外需要在poxm.xml加上依赖
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>切记为false, 是否使用过滤器
</resource>
</resources>
</build>
另外一种方法是把配置文件放到resources下,就可以了
<property name="mapperLocations" value="Usermapper.xml"/>