'How to solve error nested mappings are not allowed in compact mappings
It says nested mappings are not allowed in compact mappings
eureka:
client:
register-with-eureka: false
fetch-registry: false
server.port: 8796
spring.application.name: eurekaservice
After rewriting many times, it somehow stopped showing me error! Please some one say what would be the cause?
Solution 1:[1]
check tabs and spaces. YAML expects indentations with spaces, not tabs. A lot of editors allow you to automatically convert tabs to spaces. It’s usually in the settings somewhere and you’ll want that switched on if you intend to tab-indent YAML.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Adi Ep |
