{"id":21409668,"url":"https://github.com/edgar-code-repository/spring-boot-scheduled-process","last_synced_at":"2025-10-28T08:44:04.217Z","repository":{"id":150026300,"uuid":"343001762","full_name":"edgar-code-repository/spring-boot-scheduled-process","owner":"edgar-code-repository","description":"Spring Boot app that shows how to schedule tasks using @Scheduled annotation.","archived":false,"fork":false,"pushed_at":"2021-04-24T22:48:13.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T04:29:28.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edgar-code-repository.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-28T02:13:12.000Z","updated_at":"2021-04-24T22:48:15.000Z","dependencies_parsed_at":"2023-04-12T20:24:30.446Z","dependency_job_id":null,"html_url":"https://github.com/edgar-code-repository/spring-boot-scheduled-process","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Fspring-boot-scheduled-process","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Fspring-boot-scheduled-process/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Fspring-boot-scheduled-process/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edgar-code-repository%2Fspring-boot-scheduled-process/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edgar-code-repository","download_url":"https://codeload.github.com/edgar-code-repository/spring-boot-scheduled-process/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910451,"owners_count":20367537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T17:28:01.856Z","updated_at":"2025-10-28T08:44:04.113Z","avatar_url":"https://github.com/edgar-code-repository.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"SCHEDULED PROCESS\n------------------------------------------------------------------------------\n\nSpring Boot app that shows how to schedule tasks using @Scheduled annotation.\n\nBuilt with Java 11, Spring Boot 2, Gradle and Lombok.\n\n------------------------------------------------------------------------------\n\nThe class ScheduledExample uses the annotation @EnableScheduling and contains\na method that uses the annotation @Scheduled.\n\nThis method runs every 5 seconds, taking this value from the properties file.\n\n```\n\npackage com.example.demo.configuration;\n\nimport java.time.LocalDateTime;\nimport java.time.format.DateTimeFormatter;\n\nimport org.springframework.scheduling.annotation.EnableScheduling;\nimport org.springframework.scheduling.annotation.Scheduled;\nimport org.springframework.stereotype.Component;\n\nimport lombok.extern.java.Log;\n\n@Component\n@Log\n@EnableScheduling\npublic class ScheduledExample {\n\n\tprivate static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm:ss\");\n\t\n\t@Scheduled(fixedRateString = \"${invoiceProcess.fixedRate}\", initialDelay = 1000)\n\tpublic void processing() {\n\t\tlog.info(\"[ScheduledExample][processing][START]\");\n\t\tlog.info(\"[ScheduledExample][processing][LocalDateTime.now(): \" + dateTimeFormatter.format(LocalDateTime.now()) + \"]\");\n\t\tlog.info(\"[ScheduledExample][processing][END]\");\n\t}\n\t\n}\n\n\n```\n\n------------------------------------------------------------------------------","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgar-code-repository%2Fspring-boot-scheduled-process","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedgar-code-repository%2Fspring-boot-scheduled-process","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedgar-code-repository%2Fspring-boot-scheduled-process/lists"}