提交 c04cd468 编写于 作者: 如梦技术's avatar 如梦技术 🐛

🐛 spi 文件读取时跳过注释行

上级 a3bf4ebb
......@@ -51,11 +51,11 @@ class ServicesFiles {
) {
String line;
while ((line = r.readLine()) != null) {
int commentStart = line.indexOf('#');
if (commentStart >= 0) {
line = line.substring(0, commentStart);
}
line = line.trim();
// 跳过注释行
if (line.startsWith("#")) {
continue;
}
// 校验是否删除文件
if (!line.isEmpty() && Objects.nonNull(elementUtils.getTypeElement(line))) {
serviceClasses.add(line);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册