com.zusmart.sample.kit.Formater Maven / Gradle / Ivy
The newest version!
package com.zusmart.sample.kit;
import com.zusmart.basic.toolkit.StringUtils;
import com.zusmart.inject.annotation.Property;
public class Formater {
@Property("server.name")
private String serverName;
public String memberNameFormat(String memberName){
if(StringUtils.isNotBlank(memberName) && memberName.length() > 2){
return memberName + "**** " + this.serverName;
}
return memberName;
}
}