我使用 mvn clean install 和 mvn clean package 安装了我项目的所有依赖项。当我尝试执行该项目时,我收到此错误:
[ERROR] /home/danielamorais/Documents/api-management/src/main/java/com/daniela/entity/infra/PartnerService.java:[15,68] cannot find symbol
symbol: class UserParameter
location: interface com.daniela.entity.infra.PartnerService
[ERROR] /home/danielamorais/Documents/api-management/src/main/java/com/daniela/entity/infra/PartnerService.java:[39,72] cannot find symbol
symbol: class PresentationType
location: interface com.daniela.entity.infra.PartnerService
[ERROR] /home/danielamorais/Documents/api-management/src/main/java/com/daniela/entity/domain/ProvisionService.java:[378,73] incompatible types: inference variable T has incompatible bounds
equality constraints: com.daniela.system.infra.PresentationType
lower bounds: java.lang.Object
PartnerService界面
public interface PartnerService {
void getUserParameter(Long partnerId, String user, ResponseHandler<UserParameterResponse> handler);
void getPresentationType(Long requestorId, ResponseHandler<PresentationTypeResponse> handler);
public static class UserParameterResponse extends ArrayList<UserParameter> {
private static final long serialVersionUID = 1L;
public static class UserParameter {
private String value;
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
}
public static class PresentationTypeResponse extends ArrayList<PresentationType> {
private static final long serialVersionUID = 1L;
public static class PresentationType{
private PresentationTypeAcronym presentationType;
public PresentationTypeAcronym getPresentationType() {
return presentationType;
}
public void setPresentationType(PresentationTypeAcronym presentationType) {
this.presentationType = presentationType;
}
public com.daniela.system.infra.PresentationType toInfra(){
com.daniela.system.infra.PresentationType infra = new com.daniela.system.infra.PresentationType();
infra.setPresentationType(this.presentationType.name());
return infra;
}
}
}
}
extends ArrayList ...
发生错误为什么会这样? IntelliJ告诉我一切都是正确的(没有错误)