1. 程式人生 > >問題收集:使用mybatis generator生成程式碼報錯,StringIndexOutOfBoundsException異常

問題收集:使用mybatis generator生成程式碼報錯,StringIndexOutOfBoundsException異常

問題描述:在使用mybatis 生成程式碼時,報錯

報錯:java.lang.StringIndexOutOfBoundsException: String index out of range: -1 

問題解決方案:請檢查 table 標籤下的 domainObjectName屬性值首字母是否為大寫。修改完成後,問題解決!