Launch Workspace

Spring Boot Cron Expression Generator

Build 6-field Spring Cron expressions with second precision and generate ready-to-use Java @Scheduled snippets.

Dialect:
6 fields
Plain EnglishWeekday

Every weekday (Monday through Friday) at 9:00 AM

Runs every weekday (monday through friday) at 9:00 am. Evaluated according to SPRING cron specifications.

Popular Presets:

AWS EventBridge Rule (CloudFormation & Terraform)

Configure schedule and executable to generate copy-paste deployment code.

# Terraform AWS EventBridge Rule
resource "aws_cloudwatch_event_rule" "scheduled_task" {
  name                = "scheduled-task"
  description         = "Scheduled cron trigger for scheduled-task"
  schedule_expression = "cron(0 9 * * 1-5 *)"
}

# Target trigger
resource "aws_cloudwatch_event_target" "lambda_target" {
  rule      = aws_cloudwatch_event_rule.scheduled_task.name
  target_id = "TriggerLambda"
  arn       = "arn:aws:lambda:us-east-1:123456789012:function:my-function"
}

Frequently Asked Questions

Everything you need to know about Cron expressions, syntax rules, and platform nuances.

Why does Spring Boot use 6 fields instead of 5?

Spring Framework schedules support second precision, placing a second field (0-59) at index 0 before minute, hour, day-of-month, month, and day-of-week.

How do I specify timezones in Spring @Scheduled?

Use the zone attribute inside the annotation, e.g. @Scheduled(cron = "0 0 9 * * 1-5", zone = "America/New_York").