简介: kettle中jndi数据源是使用simple-jndi.jar,默认使用simple-jndi/jdbc.properties配置数据源。 通过下面源码可以看出,配置文件中,#号被认为是注释,因此数据源的密码中不能出现#号。
kettle中jndi数据源是使用simple-jndi.jar,
默认使用simple-jndi/jdbc.properties配置数据源。
通过下面源码可以看出,配置文件中,#号被认为是注释,
因此数据源的密码中不能出现#号。
https://github.com/pentaho/pentaho-simple-jndi/blob/master/src/main/java/org/osjava/sj/loader/util/CustomProperties.java
int idx = line.indexOf('#');
// remove comment
if(idx != -1) {
line = line.substring(0,idx);
} 

Comments | NOTHING