Class ExampleApplication

java.lang.Object
edu.ucsb.cs156.example.ExampleApplication

@SpringBootApplication @EnableAsync @EnableScheduling public class ExampleApplication extends Object
The ExampleApplication class is the main entry point for the application.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.boot.ApplicationRunner
    Hook that can be used to set up any services needed for development
    static void
    main(String[] args)
    The main method is the entry point for the application.
    static org.springframework.context.support.PropertySourcesPlaceholderConfigurer
    Pull in git.properties from the classpath, if it exists.
    org.springframework.boot.ApplicationRunner
    When using the wiremock profile, this method will call the code needed to set up the wiremock services

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExampleApplication

      public ExampleApplication()
  • Method Details

    • wiremockApplicationRunner

      @Profile("wiremock") @Bean public org.springframework.boot.ApplicationRunner wiremockApplicationRunner()
      When using the wiremock profile, this method will call the code needed to set up the wiremock services
    • developmentApplicationRunner

      @Profile("development") @Bean public org.springframework.boot.ApplicationRunner developmentApplicationRunner()
      Hook that can be used to set up any services needed for development
    • main

      public static void main(String[] args)
      The main method is the entry point for the application.
      Parameters:
      args - command line arguments, typically unused for Spring Boot applications
    • placeholderConfigurer

      @Bean public static org.springframework.context.support.PropertySourcesPlaceholderConfigurer placeholderConfigurer()
      Pull in git.properties from the classpath, if it exists. This is useful for displaying git information in the application. We use this in the SystemInfoService. See: https://www.baeldung.com/spring-git-information
      Returns:
      a propertySourcePlaceholderConfigurer for git.properties