[Solved] Springboot Deploy Error: Input length = 1 or Input length = 2

org. yaml. snakeyaml. error. YAMLException: java. nio. charset. MalformedInputExcep

reason:

1. The text code in YML file is GBK format

Solution:

1. Open settings-Editor-File Econdings in idea, set yml to UTF-8

2. Copy the yml content, delete application.yml, modify the content to UTF-8 format by notepad, then recreate the yml file and put the content into it.

3. Set the yml encoding in settings, without deleting the yml file, Build –> Rebuild Project, resume running. [I haven’t tried this method]

Read More: