引起:java.lang.VerifyError:操作数堆栈上的错误类型 例外细节: 地点: 模型/ UserBills.getTypeTitle()Ljava /郎/字符串; @ 4:invokevirtual 原因: 类型'models / UserBills $ Type'(当前帧,堆栈[0])不能分配给'models / UserBills' 当前框架: bci:@ 4 旗帜:{} 当地人:{'models / UserBills'} stack:{'models / UserBills $ Type'} 字节码: 0x0000000:2ab6 0079 b600 7db0
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at play.db.ebean.DefaultEbeanConfig$EbeanConfigParser.parse(DefaultEbeanConfig.java:103)
... 57 more
3)自定义提供程序出错,配置错误:配置错误[无法在Ebean服务器中注册类[models.UserBills]] 找到play.db.ebean.DefaultEbeanConfig $ EbeanConfigParser 在play.db.ebean.EbeanModule.bindings(EbeanModule.java:24): 绑定(接口play.db.ebean.EbeanConfig到ProviderConstructionTarget(类play.db.ebean.DefaultEbeanConfig $ EbeanConfigParser)急切地)(通过模块:com.google.inject.util.Modules $ OverrideModule - > play.api.inject。 guice.GuiceableModuleConversions $$匿名$ 1) 找到play.db.ebean.EbeanConfig
@Entity 公共类信息扩展模型{ public static Finder finder = new Finder<>(Information.class);
public enum Status {
VALID("已读"), INVALID("未读"), DELETED("删除");
public String title;
Status(String title) {
this.title = title;
}
}
@Id
private Long id;
private String title;
@Formats.DateTime(pattern = "yyyy-MM-dd HH:mm")
private Date createTime;
@Enumerated(EnumType.STRING)
private Status status;
private Long employeeId;
public Long getEmployeeId() {
return employeeId;
}
public void setEmployeeId(Long employeeId) {
this.employeeId = employeeId;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Status getStatus() {
return status;
}
public void setStatus(Status status) {
this.status = status;
}
public String getStatusTitle() {
return this.status.title;
}
}