springboot read at resource files

public static String DEFAULT_CFGFILE = ConfigManager.class.getClassLoader().getResource("conf/sms.xml").getPath();

Guess you like

Origin www.cnblogs.com/freeht/p/12030776.html