1. 程式人生 > >Mybatis配置檔案載入時Connection timed out問題

Mybatis配置檔案載入時Connection timed out問題

最近,在一個專案中用到了Mybatis測試環境想列印sql語句就添加了Mybatis的xml配置檔案,然後啟動報錯Mybatis-config.xml connection timed out錯誤。

查了半天查詢到原因:

mybatis的xml標籤檢驗之前這塊兒是一個url地址,是去網路上找這個校驗檔案。所以可能出現connection timed out。之後把這個檔案個下到本地,然後將這個地址改成本地檔案地址就OK了。

解決連結:https://blog.csdn.net/java_hdz/article/details/80689964

希望對你有幫助!