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:
- Springboot error: Input length = 1 [How to Solve]
- [Solved] Specified key was too long; max key length is 767 bytes
- [Solved] Maven Publish Error: Failed to execute goal org.apache.maven.pluginsmaven-deploy-plugin2.8.2deploy
- [Solved] Git Clone Error: “error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length …
- [Solved] Java Run Error: For input string: “XXX”
- [Solved] Swagger Startup Error: java.lang.NumberFormatException: For input string: ““
- keytool error: java.lang.Exception: Input not an X.509 certificate
- I/O error while reading input message; nested exception is java.io.IOException: Stream closed
- [Solved] Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input
- [Solved] The main method caused an error: Could not deploy Yarn job cluster.
- Springboot uses Oracle database to report property ‘sqlsessionfactory’ or ‘sqlsessiontemplate’ are required
- How to Solve Springboot YML configurate logging.level error
- [Solved] Springboot integrate swagger error: Failed to start bean ‘documentationPluginsBootstrapper‘
- The problem of date format conversion between springboot and front end
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- Springboot2.6.X configurate swagger error [How to Solve]
- NULL value exception occurs when freemarker renders the page globally in the springboot project
- [Solved] Springboot upload failed to find the temporary directory error
- [Solved] Springboot Package jar and Startup Error: It was loaded from the following location