Java: Profile Reader

xiaoxiao2021-03-06  13

[Config.properties]

[CMS Properties] cmsservername = cmscmstemplatedirectoryName = Template

[Time Out: minute] Time_Out = 300000

[administrator setting] administrator = saadmingroup = adminRole

[Web path setting] innerResource = / accessControl / JSP / InnerResource /

[Picture Path Setting] PicturePath = C: / Picture / [log path setting] LogPath = C: / log1 /

[Configbundle.java]

Package creator.config;

Import java.util.missingResourceException; import java.util.resourcebundle;

/ ** * *

title: configbundle.java *

description: *

Copyright: Copyright (c) 2004 *

Company: * @Author tanbo * @version 1.0 * / public class configbundle {private static resourcebundle bundle;

/ ** * init () * / public configbundle () {}

/ ** * @function getString * @param s String * @return String * / public static String getString (String s) {String s1 = null; try {s1 = getResourceBundle () getString (s);.} Catch (MissingResourceException missingresourceexception ) {System.out.println ("configbundle: getString Error!" MissingResourceException.toString ());} Return S1;}

/ ** * @function getResourceBundle * @return ResourceBundle * / private static ResourceBundle getResourceBundle () {if (bundle == null) bundle = ResourceBundle.getBundle ( "creator.config.config"); return bundle;}}

转载请注明原文地址:https://www.9cbs.com/read-51037.html

New Post(0)