Score
0
Watch 2.9K Star 10.5K Fork 5K

GVP若依 / RuoYiJavaMIT

若依,代码生成报错

Open
分享的小蚂蚁  Opened this issue

代码生成报错:org.apache.velocity.exception.MethodInvocationException: Invocation of method 'substring' in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at vm/java/domain.java.vm[line 54, column 23]
报错位置:#if($column.javaField.substring(1,2).matches("[A-Z]"))
请问解决了没?

total 1 participants

Comments (3)

分享的小蚂蚁 2020-01-13 14:55

表结构如下 :
输入图片说明

分享的小蚂蚁 2020-01-13 15:24

我之前的表可以代码生成功,这张新建的表不可以

分享的小蚂蚁 2020-01-13 15:38

大神,我找到错误了,表中x,y字段太短了,导致截取报错.

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/y_project/RuoYi.git
git@gitee.com:y_project/RuoYi.git
y_project
RuoYi
RuoYi

Help Search