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,搞死人。