Mybatis 常見錯誤(持續追加):
- open quote is expected for attribute “id”.:
屬性id需要開引號,提示的很明顯,即在sqlmapper 中的AURD操作中 id 對應屬性沒有加引號。但是錯誤不容易注意到,因爲ide中沒加引號的與加引號的顏色一樣。 - the string “-” is not permitted within comments:
“-” 註釋中不允許使用字符串“-”,該錯誤發生在sqlmapper中,給方法加註釋時,原因是:sqlmapper 中的註釋符號“<!–”與註釋之間沒有加空格