SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Hibernate properties
  2.     spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
  3.     spring.jpa.show-sql=false
  4.     spring.jpa.properties.hibernate.format_sql=true
  5.     spring.jpa.hibernate.ddl-auto= update
  6.     spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation = false
  7.  
  8.     # QuartzProperties
  9.     spring.quartz.job-store-type = jdbc
  10.     org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
  11.     spring.quartz.properties.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.PostgreSQLDelegate
  12.     #spring.quartz.jdbc.schema=classpath:org/quartz/impl/jdbcjobstore/tables_postgres.sql
  13.     org.quartz.jobStore.dataSource = default
  14.     spring.quartz.properties.org.quartz.threadPool.threadCount = 5
  15.      
  16. @SpringBootApplication
  17. @EnableScheduling
  18. public class Application {
  19. public static void main(String[] args){
  20.     SpringApplication.run(Application.class, args);
  21. }
  22.      
  23. @Scheduled(fixedDelay= 1000 * 60 * 24)
  24.     public void execute() {
  25.        System.out.println("Your job here!");
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top