Class UserBootstrap

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

@Configuration public class UserBootstrap extends Object implements org.springframework.boot.CommandLineRunner
Bootstrap de Usuários.

Propósito: Garantir que o usuário de sistema (Bot) exista para processos de background.

  • Field Details

    • log

      private static final org.slf4j.Logger log
    • systemUserService

      private final SystemUserService systemUserService
  • Constructor Details

  • Method Details

    • run

      public void run(String... args)
      Inicializa o usuário de sistema.
      Specified by:
      run in interface org.springframework.boot.CommandLineRunner