-Dfile.encoding=UTF-8,-DKETTLE_PLUGIN_CLASSES=org.pentaho.di.sdk.samples.steps.job.JobStepMeta要怎么拼接
时间: 2024-06-06 17:09:39 浏览: 168
jfinal-jfinal-master.zip_Java 8_cos-26Dec2008_cos-26Dec2008.pom_
要拼接这个字符串,可以使用加号(+)操作符连接字符串,例如:
String str = "-Dfile.encoding=UTF-8," + "-DKETTLE_PLUGIN_CLASSES=org.pentaho.di.sdk.samples.steps.job.JobStepMeta";
或者使用StringBuilder类来构建字符串,例如:
StringBuilder sb = new StringBuilder();
sb.append("-Dfile.encoding=UTF-8,");
sb.append("-DKETTLE_PLUGIN_CLASSES=org.pentaho.di.sdk.samples.steps.job.JobStepMeta");
String result = sb.toString();
阅读全文