//配置文件和类同包
//InputStream is = MysqlJdbcTest.class.getResourceAsStream(“jdbc.properties”);//相对类路径(读取和本类同目录的文件) – success
//InputStream is = MysqlJdbcTest.class.getResourceAsStream("/com/boyongsoft/activiti/jdbc/jdbc.properties");//绝对路径,以"/"开头,从类路径开始。 – success
//配置文件路径在application.propertis包下(默认)
//InputStream is = getClass().getClassLoader().getResourceAsStream("com/boyongsoft/activiti/jdbc/jdbc.properties");//classLoader读文件,从类路径开始。 -- success
InputStream is = getClass().getClassLoader().getResourceAsStream("jdbc.properties");//默认资源文件路径。 -- success