- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 读取配置文件 + 修改配置文件
方式一:采用ServletContext读取,读取配置文件的realpath,然后通过文件流读取出来。因为是用ServletContext读取文件路径,所以配置文件可以放入在web-info的classes目录中,也可以在应用层级及web-info的目录中。文件存放位置具体在eclipse工程中的表现是:可以放在src下面,也可放在web-info及webroot下面等。因为是读取出路径后
2015-06-18 10:59:26
783
原创 如何以管理员身份运行cmd
RUNAS USAGE:RUNAS [ [/noprofile | /profile] [/env] [/savecred | /user: programRUNAS [ [/noprofile | /profile] [/env] [/savecred] ] /smartcard [/user:] programRUNAS /trust
2015-05-13 14:36:32
1157
转载 连接数据库
1、Oracle8/8i/9i数据库(thin模式) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; //orcl为数据库的SID String user="test"; String pas
2014-09-01 18:04:14
289
spring+springmvc+mybatis
2014-10-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人