Class HTTPValidatorWebApp

java.lang.Object
cf.maybelambda.httpvalidator.springboot.HTTPValidatorWebApp

@SpringBootApplication @EnableScheduling public class HTTPValidatorWebApp extends Object
Main class for starting the HTTP Validator web application. Finds components, reads configuration, and starts the web server.
  • Field Details

  • Constructor Details

    • HTTPValidatorWebApp

      public HTTPValidatorWebApp()
  • Method Details

    • main

      public static void main(String[] args)
      Main method to run the Spring Boot application.
      Parameters:
      args - Command line arguments
    • restartAppContextWithNewRunSchedule

      public static void restartAppContextWithNewRunSchedule(String cronExpression)
      Restarts the application context with a new cron expression for scheduling tasks. This method creates a new thread to close the current context and restart the application with updated arguments that override the expression previously used.
      Parameters:
      cronExpression - New cron expression