Пример #1
0
public class Constant {

  public static final String masterSecret = "2b38ce69b1de2a7fa95706ea";

  public static final String savePath = "C:\\upload";

  public static final String appKey = "dd1066407b044738b6479275";

  public static final String Toke = "toke";

  public static final String JsapiTicket = "ticket";

  public static final String WebToke = "webtoke";

  public static final String AppID = PropertiesUtil.getValue("AppID");

  public static final String AppSecret = PropertiesUtil.getValue("AppSecret");

  /** 用户名 */
  public static final String User = "******";

  /** * 短信内容 %s %s */
  public static final String SMS_CONTEXT = PropertiesUtil.getValue("sms_content");

  /** * site=http://localhost:8080/truck-web */
  public static final String SITE = PropertiesUtil.getValue("site");

  /** * #用户守则的接口 member */
  public static final String member_url = PropertiesUtil.getValue("member_url");
  /** * #用户守则我们的接口 driver */
  public static final String driver_url = PropertiesUtil.getValue("driver_url");

  /** * #关于我们的接口 member */
  public static final String member_about_url = PropertiesUtil.getValue("member_about_url");
  /** * #关于我们的接口 driver */
  public static final String driver_about_url = PropertiesUtil.getValue("driver_about_url");

  /** * #欢迎页面的接口 member */
  public static final String member_welcome_url = PropertiesUtil.getValue("member_welcome_url");
  /** * #欢迎页面的接口 driver */
  public static final String driver_welcome_url = PropertiesUtil.getValue("driver_welcome_url");
  /** * #欢迎页面的接口 admin */
  public static final String admin_welcome_url = PropertiesUtil.getValue("admin_welcome_url");

  /** * 用户首面 */
  public static final String member_index = PropertiesUtil.getValue("member_index");

  /** * 用户更新首面 */
  public static final String member_update = PropertiesUtil.getValue("member_update");
  /** * 司机更新首面 */
  public static final String driver_update = PropertiesUtil.getValue("driver_update");
  /** * 管理员更新首面 */
  public static final String admin_update = PropertiesUtil.getValue("admin_update");
}
Пример #2
0
  public static void main(String[] args) {

    System.out.println(PropertiesUtil.getValue("sms_content"));
  }