HTTP Status 500 - Request processing failed; nested exception is java.lang.RuntimeException: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.XXXXX.mapper.TbBrandMapper.selectByExample
原因是dao的mapper中的xml文件没有被编译
解决办法:
在dao的pom.xml文件中加上以下代码
<build> <resources> <!--拷贝xml文件到classpath下--> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> </resources> </build>