Application.yml file format problem
If your project has no configuration errors and the configuration file name is normal, and you still have this problem, it must be a problem with the encoding of your yml file.
Because the encoding format of this file is GBK, the encoding format of the project is UTF-8, there are comments in it, and the comments are garbled, which leads to compilation failure.
Solution:
IDEA open path: File –> Settings –> File Encodings, then change the format of /application.yml to the same as the project, i.e.: UTF-8.
To be on the safe side, change “Project Encoding” to UTF-8 as well.
Restart IDEA, then start the project, OK.
Translated with www.DeepL.com/Translator (free version)
Read More:
- [Solved] Spring Boot Project Error: Failed to load property source from
- Eclipse relies on spring boot configuration processor, and there is no prompt for writing properties and YML
- [Solved] Springboot Project Startup Error: Unable to Identify bootstrap.yml Configuration
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- [Solved] spring boot Startup Error: Error creating bean with name ‘requestMappingHandlerMapping‘ defined in class path
- [Solved] ‘build.plugins.plugin.version‘ for org.springframework.boot:spring-boot-maven-plugin is missing.
- Spring Boot Error starting ApplicationContext. To display the auto-configuration report re-run you
- How to Solve Spring Boot Maven Build Error
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- [Solved] Jxls error: Cannot load XLS transformer. Please make sure a Transformer implementation is in classpath
- Spring-boot-maven-plugin Error [How to Solve]
- Spring boot real time HTML page
- [Solved] ERROR org.springframework.boot.SpringApplication – Application run failed org.yaml.snakeyaml.scanner
- [Solved] Springboot Package jar and Startup Error: It was loaded from the following location
- Java error: unable to find or load main class (package name in source file)
- Project Startup Error: It was loaded from the following location
- [Solved] spring boot integrated PageHelper Error
- How to Solve Spring integrate Seata startup error
- Spring Security Upgrade to Version 5.5.7, 5.6.4 or Above to Startup Error (Version incompatibility)
- [Solved] error running ‘xx‘ Command line is too long shorten command line for xx or also for Spring Boot defa