Previously, the configuration file was loaded in this way: [java] private static void init () {URL url = PropertyUtil. class. getClassLoader (). getResource ("ApplicationResources. properties "); String file = url. getFile (); try {file = java.net. URLDecoder. decode (file, "UTF-8");} catch (Exception e) {e. printStackTrace ();} configFile = new File (file); lastModified = configFile. lastModified (); props = new Properties (); load ();} private stati C void load () {try {props. load (new FileInputStream (configFile); lastModified = configFile. lastModified ();} catch (IOException e) {e. printStackTrace (); throw new RuntimeException (e) ;}you can use the preceding method to read your configuration file in the Jar package) and in the jboss-as-7.1.1.Final (released war package project), always reported that the configuration file could not be loaded, on the Internet to check the information, changed to: [java] private static void init () {props = new Properties (); load ();} private static void load () {try {props. l Oad (PropertyUtil. class. getClassLoader (). getResourceAsStream ("ApplicationResources. properties ");} catch (IOException e) {throw new RuntimeException (e);} No problem. Record it here.