- 完成数据库连接后报错
org.apache.ibatis.binding.BindingException: Type interface com.*** is not known to the MapperRegistry.java.lang.ExceptionInInitializerError.ExceptionInInitializerError。
这个是初始化 maven 的错误。
需要maven的pom.xml添加资源配置路径
<!--配置资源路径-->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>