Class HappierCowsApplication

java.lang.Object
edu.ucsb.cs156.happiercows.HappierCowsApplication

@SpringBootApplication @EnableJpaAuditing(dateTimeProviderRef="utcDateTimeProvider") @EnableAsync @EnableScheduling public class HappierCowsApplication extends Object
  • Constructor Details

    • HappierCowsApplication

      public HappierCowsApplication()
  • 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)
    • utcDateTimeProvider

      @Bean public org.springframework.data.auditing.DateTimeProvider utcDateTimeProvider()
    • taskExecutor

      @Bean public org.springframework.security.task.DelegatingSecurityContextAsyncTaskExecutor taskExecutor(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor delegate)
    • threadPoolTaskExecutor

      @Bean public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor threadPoolTaskExecutor()