springboot读取resource下的文件

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

猜你喜欢

转载自www.cnblogs.com/freeht/p/12030776.html