kettle的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);
                }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章