String basePath = Thread.currentThread().getContextClassLoader().getResource("").getPath();
System.out.println(basePath);
console:/E:/Users/%e5%bc%a0%e5%a3%ab%e5%bf%83/eclipse-workspace/o2o/target/classes/
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程