关于读取.properties路径空格等问题

读取Properties文件和路径问题 如:读取jdbc.properties文件 路径 读取的类位于:package com.query.util; getClass().getResourceAsStream(jdbc.properties) 则jdbc.properties描述的路径是相对于这个类所在包的根路径而言的, 即为相对于文件夹util所在目录开始, getClass().getRe
相关文章
相关标签/搜索