Class JpaConfig

java.lang.Object
com.nmontytskyi.monitoring.server.config.JpaConfig

@Configuration @EnableJpaAuditing public class JpaConfig extends Object
JPA configuration for the Monitoring Server.

Enables JPA auditing so that @CreatedDate and @LastModifiedDate annotations on entity fields are automatically populated by Spring Data JPA.

  • Constructor Details

    • JpaConfig

      public JpaConfig()
  • Method Details

    • taskScheduler

      @Bean public org.springframework.scheduling.TaskScheduler taskScheduler()