错误提示 the operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.
public class User {
private Integer id;
private String firstname;
private String lastname;
private int age;
错误描述
public class User {
private Integer id;
private String firstname;
private String lastname;
private int age;
}
右键Source选择generate getters and setters出现上述问题
解决方案
在}之前多加几个回车,然后在空白处右键
例如
package com.test.bean;
public class User {
private Integer id;
private String firstname;
private String lastname;
private int age;
→
→
→
}
在有→的行右键