Springboot获取resource的路径

1、获取resource目录下的template路径
String path = Thread.currentThread().getContextClassLoader().getResource("").getPath()+"template";

猜你喜欢

转载自www.cnblogs.com/ywjfx/p/10944656.html
今日推荐