第一种:
当如:db.properties(该文件数据之间没有联系)配置在web服务器中如图
路径:/WEB-INF/db.properties
调取方法:getServletContext()
第二种:
配置文件在其他目录下如图:
路径:db.properties
方法:getClass()
第一种:
当如:db.properties(该文件数据之间没有联系)配置在web服务器中如图
路径:/WEB-INF/db.properties
调取方法:getServletContext()
第二种:
配置文件在其他目录下如图:
路径:db.properties
方法:getClass()