diff --git a/eventmesh-connector-plugin/eventmesh-connector-rocketmq/src/main/java/org/apache/eventmesh/connector/rocketmq/config/ConfigurationWrapper.java b/eventmesh-connector-plugin/eventmesh-connector-rocketmq/src/main/java/org/apache/eventmesh/connector/rocketmq/config/ConfigurationWrapper.java index a2ec1d1f11..83036bb36b 100644 --- a/eventmesh-connector-plugin/eventmesh-connector-rocketmq/src/main/java/org/apache/eventmesh/connector/rocketmq/config/ConfigurationWrapper.java +++ b/eventmesh-connector-plugin/eventmesh-connector-rocketmq/src/main/java/org/apache/eventmesh/connector/rocketmq/config/ConfigurationWrapper.java @@ -52,7 +52,7 @@ public String getProp(String key) { */ private void loadProperties() { try (InputStream resourceAsStream = ConfigurationWrapper.class.getResourceAsStream( - File.separator + EventMeshConstants.EVENTMESH_CONF_FILE)) { + "/" + EventMeshConstants.EVENTMESH_CONF_FILE)) { if (resourceAsStream != null) { properties.load(resourceAsStream); }