Skip to content

Problem using YAML instead of Properties with spring-boot-starter-parent 1.4.0.RELEASE #6878

@Panciz

Description

@Panciz

Form the reference guide

 The SpringApplication class will automatically support YAML as an alternative to properties whenever you have the SnakeYAML library on your classpath.

[Note]
If you use ‘Starters’ SnakeYAML will be automatically provided via spring-boot-starter.

anyway if I use in my pom.xml

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.4.0.RELEASE</version>
    </parent> 

The application keeps looking for application.properties and ignoring the .yml file.
I need to downgrade to 1.4.0.RELEASE or adding the dependency snakeyaml 1.16

    <dependency>
                <groupId>org.yaml</groupId>
               <artifactId>snakeyaml</artifactId>
              <version>1.16</version>
        </dependency>

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.com

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions