org.apache.ibatis.binding.BindingException

出现这个问题要先看你的mapper映射文件xml文件写在那里
如果在resource中你要检查你的xml文件与mapper接口的包的路径是否相同
例如:mapper在src下的com.a.b.mapper
那么在resource中也要有com.a.b.mapper
如果你写在src中与mapper接口写在一起要在pom文件中加

<resources>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**/*.properties</include>
					<include>**/*.xml</include>
				</includes>
				<filtering>false</filtering>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>**/*.properties</include>
					<include>**/*.xml</include>
				</includes>
				<filtering>false</filtering>
			</resource>
		</resources>

配置在

org.apache.ibatis.binding.BindingException

上一篇:Kubernetes 集群升级docker版本


下一篇:HTML的基础知识