Class ApplicationPropertiesContributor

java.lang.Object
io.spring.initializr.generator.spring.properties.ApplicationPropertiesContributor
All Implemented Interfaces:
ProjectContributor, org.springframework.core.Ordered

public class ApplicationPropertiesContributor extends Object implements ProjectContributor
A ProjectContributor that contributes a application.properties file to a project.
Author:
Stephane Nicoll, Moritz Halbritter
  • Constructor Details

    • ApplicationPropertiesContributor

      public ApplicationPropertiesContributor(ApplicationProperties properties)
  • Method Details

    • contribute

      public void contribute(Path projectRoot) throws IOException
      Description copied from interface: ProjectContributor
      Contribute additional resources to the project in the specified root directory.
      Specified by:
      contribute in interface ProjectContributor
      Parameters:
      projectRoot - the root directory of the project
      Throws:
      IOException - if contributing a resource failed