classpath file user.dir
来源:互联网 发布:如何注册淘宝企业商铺 编辑:程序博客网 时间:2024/05/18 18:21
classpath:
ApplicationContext ctx = new ClassPathXmlApplicationContext("xxxx.xml");//读取classPath下的spring.xml配置文件
web: classpath是指 WEB-INF文件夹下的classes目录
classes含义:
1.存放各种资源配置文件 eg.init.properties log4j.properties struts.xml
2.存放模板文件 eg.actionerror.ftl
3.存放class文件 对应的是项目开发时的src目录编译文件
总结:这是一个定位资源的入口
classes含义:
1.存放各种资源配置文件 eg.init.properties log4j.properties struts.xml
2.存放模板文件 eg.actionerror.ftl
3.存放class文件 对应的是项目开发时的src目录编译文件
总结:这是一个定位资源的入口
ApplicationContext ctx = new ClassPathXmlApplicationContext("xxxx.xml");//读取classPath下的spring.xml配置文件
ApplicationContext ctx = new FileSystemXmlApplicationContext("WebRoot/WEB-INF/xxxx.xml"); //读取WEB-INF下的spring.xml文件
src下的xml在编译时也会复制到classPath下
${user.home}表示当前登录系统的用户目录(如"C:\Users\gacl") 从Maven中心仓库下载到本地的jar包的默认存放在”${user.home}/.m2/repository”中,
src下的xml在编译时也会复制到classPath下
${user.home}表示当前登录系统的用户目录(如"C:\Users\gacl") 从Maven中心仓库下载到本地的jar包的默认存放在”${user.home}/.m2/repository”中,
0 0
- classpath file user.dir
- System.getProperty("user.dir") 和File.separator的用法
- file,dir
- System.getProperty("user.dir")
- System.getProperty("user.dir")
- 【python】-file/dir
- file,dir笔记
- BFILENAME(dir,file)
- 关于System.getProperty("user.dir")
- System.getProperty("user.dir")方法
- dir 中的 file的权限
- dir /s file的使用
- System.getProperties("user.dir")获得系统属性
- 关于System.getProperty("user.dir")的研究
- System.getProperty("user.dir"); 获得系统属性
- System.getProperty("user.dir"); 获得系统属性
- java 属性 user.dir 的问题
- eclipse中的System.getProperty("user.dir")
- jquery 节点的创建增加 节点删除 替换
- 黑马程序员_集合(1)
- 解决dxp打印原理图灰色背景问题
- linux关闭图形界面
- Windows下Tomcat配置
- classpath file user.dir
- MIUI 6 沉浸式状态栏调用方法
- Android学习(1)---最新Android Studio 1.4.1开发环境搭建与HelloWorld
- 代理模式
- iOS POST 文件的上传
- 为cocos2d-x3.2版本增加protobuffer2.5.0支持
- linux下mysql表名大小写敏感问题
- iOS学习08代码2
- 虚拟机Ubuntu图形界面进入命令行快捷键