2022-01-26
Multiple markers at this line
- The type org.apache.ibatis.type.TypeHandler cannot be resolved. It is
indirectly referenced from required .class files
- The type org.apache.ibatis.type.JdbcType cannot be resolved. It is
indirectly referenced from required .class files
說明你目前版本的Eclipse太舊了,不支持JDK1.8了,要麼換最新版本的Eclipse,要麼用IDEA。
有時候,明明pom.xml裏添加了外部架包,代碼裏也能正常運行,查是源碼裏就是提示報錯,說類不存在,刷新這裏就好了,maven更新不及時的原因:
外部架包jar裏用到了一個Service, 但是本部項目卻識別不了它,說bean不存在。
解決辦法1:File -> Project Structure -> 左邊菜單找到Facets -> 中間菜單選中 Spring(xxx) -> 再點左邊框上邊沿的+號 ->
在打開的對話框中選 + 號
選中Code-base configurations 然後選中你外部包bean所在的java文件就好。
感覺這個不是最優方案,先這樣做吧,反正不報錯了。