Eclipse不报错
IDEA报错
public class BaseSearch<T> implements Specification<T> { public BaseSearch(SearchDto criteria) { this.criteria = criteria; } }
new BaseSearch<>(new SearchDto("type", "eq", "1"))
解决方案
40
jdk设置问题吧 1.7之下不支持这种写法
public class BaseSearch<T> implements Specification<T> { public BaseSearch(SearchDto criteria) { this.criteria = criteria; } }
new BaseSearch<>(new SearchDto("type", "eq", "1"))
40