Package edu.ucsb.cs156.happiercows
Class HappierCowsApplication
java.lang.Object
edu.ucsb.cs156.happiercows.HappierCowsApplication
@SpringBootApplication
@EnableJpaAuditing(dateTimeProviderRef="utcDateTimeProvider")
@EnableAsync
@EnableScheduling
public class HappierCowsApplication
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.ApplicationRunner
Hook that can be used to set up any services needed for developmentstatic void
org.springframework.security.task.DelegatingSecurityContextAsyncTaskExecutor
taskExecutor
(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor delegate) org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
org.springframework.data.auditing.DateTimeProvider
org.springframework.boot.ApplicationRunner
When using the wiremock profile, this method will call the code needed to set up the wiremock services
-
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
-
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()
-