标签:class 配置 password stat 定义 pass pre gets conf
1.core==>project.properties:
change.password.code.clientId=smartedit
2.**Constants.java:
public class ChangePwd{ public static final String CLIENTID = "change.password.code.clientId"; }
3.自己的方法:
//从配置文件中获取clientID final String clientId = Config.getString(**Constants.ChangePwd.CLIENTID,"change.password.code.clientId");
标签:class 配置 password stat 定义 pass pre gets conf
原文地址:https://www.cnblogs.com/shaun-sheng/p/9454247.html