我使用InfraNameModel(Rest-type)来使用JSON
public interface IInfraNameBeanFactory extends AutoBeanFactory {
IInfraNameBeanFactory INSTANCE = GWT.create(IInfraNameBeanFactory.class);
AutoBean<InfraNameModel> infraName();
AutoBean<InfraNameListModel> results();
}
public interface InfraNameListModel {
List<InfraNameModel> getResults();
void setResults(List<InfraNameModel> results);
}
public class InfraNameListModelImpl implements InfraNameListModel {
private List<InfraNameModel> results;
@Override
public List<InfraNameModel> getResults() {
return results;
}
@Override
public void setResults(List<InfraNameModel> results) {
this.results = results;
}
}
public interface InfraNameModel {
String getInfraName();
void setInfraName(String infraName);
}
public class InfraNameModelImpl implements InfraNameModel {
private String infraName;
@Override
public String getInfraName() {
return infraName;
}
@Override
public void setInfraName(String infraName) {
this.infraName = infraName;
}
}
我想把它们变成一个单独的JAR 使其适用于客户端和服务器
但现在我有错误
[WARN] Class by.models.infraNameModel.InfraNameModel is used in Gin, but not available in GWT client code.
将这些bean拉入单独的库是真的吗?