场景:
查找所有get方法,并在其上添加注解。
需要查找的方法例如:
public int getIshfok() {
return ishfok;
}
添加注解后:
@JsonIgnore
public int getIshfok() {
return ishfok;
}
Find:public ([a-z|A-Z]+) get --- ([a-z|A-Z]+)查找至少一个字母大写或小写
Replace with:\r\n@JsonIgnore\r\npublic $1 get --- \r\r :换行; $1:查到的内容,比如int、String 等如图: