Class AssetBootstrap

java.lang.Object
com.raphaelsalles.backend.infra.config.bootstrap.AssetBootstrap
All Implemented Interfaces:
org.springframework.boot.CommandLineRunner

@Configuration public class AssetBootstrap extends Object implements org.springframework.boot.CommandLineRunner
Bootstrap de Ativos.

Propósito: Executar a migração inicial de Empresas para Assets na inicialização da aplicação. Garante que a tabela de ativos esteja populada para buscas.

  • Field Details

    • log

      private static final org.slf4j.Logger log
    • migrationService

      private final AssetMigrationService migrationService
  • Constructor Details

  • Method Details

    • run

      public void run(String... args)
      Executa a migração de assets.
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner