1:運(yùn)行Maven項(xiàng)目時(shí)出現(xiàn)invalid LOC header (bad signature)錯(cuò)誤喷户,Tomcat不能正常啟動(dòng)
因?yàn)楸镜貍}(cāng)庫(kù)的jar包未下載完成
p1.png
解決方式:刪除重新下載
2:Missing artifact com.github.pagehelper:pagehelper:jar:3.4.2-fix
jar包收費(fèi)雪侥,或者無(wú)法連上國(guó)外網(wǎng)
p2.png
解決方法:降低版本
3:Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.zq.e3.mapper.TbItemMapper.selectByPrimaryKey
原因是因?yàn)閙apper.java和mapper.xml文件不在一個(gè)文件夾归敬。
解決方法:在resources下創(chuàng)建同名文件夾怕篷,放入xml文件丑搔,或者配置:
p3.png
4:卡在log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
事實(shí)上項(xiàng)目已經(jīng)報(bào)錯(cuò)了蜘矢,這時(shí)候需要添加log4j.properties文件才能看見(jiàn)報(bào)錯(cuò)信息