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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final AssetMigrationService -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
log
private static final org.slf4j.Logger log -
migrationService
-
-
Constructor Details
-
AssetBootstrap
-
-
Method Details
-
run
Executa a migração de assets.- Specified by:
runin interfaceorg.springframework.boot.CommandLineRunner
-