springboot中的yml文件的写法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Com_ma/article/details/83654048

a: 
    sim: s
    faith: v

冒号后面有空格;

没有空格启动springboot将会报java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml'的错误

猜你喜欢

转载自blog.csdn.net/Com_ma/article/details/83654048