Servlet.service() for servlet [com.neuede.onlearn.web.WebDispatcher] in context with path [/onlearn] threw exception [Servlet execution threw an exception] with root cause 三月 29, 2020 11:02:19 上午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet [com.neuede.onlearn.web.WebDispatcher] in context with path [/onlearn] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: Cannot find class: baseMediaMap 记录犯下的小错误 这里可以看出是数据库那里出问题了 1.缓存问题,clearn一次,在重新启动。
2.写出错了,不要怀疑,就是有小地方没有注意到,最后发现select id=“getMediaByKeyword” resultType=“baseMediaMap”>这段代码写错了,应该写成select id=“getMediaByKeyword” resultMap=“baseMediaMap”>,初学,小bug,搞死人。![在这里插入图片描述](https://img-blog.csdnimg.cn/20200329105312775.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQyOTU4NzI5,size_16,color_FFFFFF,t_70)
|