我的项目名叫 LQTProject 是用 idea 构建的。 放在C:\Users\hp\IdeaProjects 下 当使用 idea 发布 springboot 项目直接运行,而不是打包为 jar 运行的时候,运行上面的代码获取的是项目的位置: 运行上面代码获得路径:C:\Users\hp\IdeaProjects 完整代码 publicstaticStringgetWebFile(){ String jar_parent=""; ...
数字中的下划线public class GFG { public static void main(String[] args) { int x = 123_...