Skip to content

Commit ee41370

Browse files
tomas-langerromain-grecourt
authored andcommitted
Fixes for updates to configuration approach in declarative:
- moved Configuration class - replaced support for configuration overrides with expressions in annotation values
1 parent 4e417b5 commit ee41370

File tree

1 file changed

+1
-1
lines changed
  • examples/declarative/server/src/main/java/io/helidon/examples/declarative/server

1 file changed

+1
-1
lines changed

examples/declarative/server/src/main/java/io/helidon/examples/declarative/server/ScheduledTasks.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
class ScheduledTasks {
2626
private final AtomicInteger counter = new AtomicInteger(0);
2727

28-
@Scheduling.Cron(value = "0/5 * * * * ?", configKey = "app.scheduling.refresh-task")
28+
@Scheduling.Cron(value = "${app.scheduling.refresh-task.expression:0/5 * * * * ?}")
2929
void refreshTask() {
3030
counter.incrementAndGet();
3131
}

0 commit comments

Comments
 (0)