-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOUtil.toString()丢失换行符 #17
Comments
你可以把读取yaml配置那个方法readConfigurationFromFile替换为这个
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
作者你好,不知道你最近还在不在更新,可能发现了一个bug
IOUtils的toString方法中使用的是BufferedReader的readLine方法,此方法会丢失每行的换行符,会导致yaml解析时报错,具体情况如下:
mapping values are not allowed here
in 'reader', line 1, column 29:
author: dumbcode projectName: test-1projectPath: D:\package ...
^
Disconnected from the target VM, address: '127.0.0.1:50170', transport: 'socket'
Process finished with exit code 0
我的修复方式是在句末重新append,这样会让此方法改为默认拼接换行

The text was updated successfully, but these errors were encountered: