Windows工作区目录创建批处理脚本,目的是养成工作区目录规范的好习惯. @echo off echo 'Create Jingyu Workshop!' rem Author: Alfred Zhao rem Version: 1.0.0 rem Create Time: 2015-12-13 rem Update Time: 2015-12-25 rem create root directory "Jingyu" mkdir Jingyu rem ---------------
问题: 普通java工程的src/main/resources目录下的配置文件如何寻址 在src/main/java目录下的代码中如何访问src/main/resources目录下的配置文件? Maven packs all the files and folders under main/resourcesinto the jar file at the the root 比如src/main/resources/config.xml,那么在代码中直接用“config.xml”就可以访问了.这