Skip to content

Commit 547a1b2

Browse files
committed
move server port config to application.properties
1 parent de662cf commit 547a1b2

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

samples/src/main/java/io/durabletask/samples/ExportHistorySample.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
public class ExportHistorySample {
2727

2828
public static void main(String[] args) {
29-
System.out.println("Export History Web App starting...");
30-
System.out.println("REST API: http://localhost:5009/export-jobs");
31-
32-
// Use port 5009 to avoid conflict with DTS emulator on 8080
33-
System.setProperty("server.port", "5009");
3429
SpringApplication.run(ExportHistorySample.class, args);
3530
}
3631

samples/src/main/resources/application.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ durable.task.taskHubName=dtwbwuks01th01
33
durable.task.connection-string=Endpoint=https://dtwbwuks01-gqa9c3ccgbgd.uksouth.durabletask.io;TaskHub=dtwbwuks01th01;Authentication=DefaultAzure;
44
# Add logging configuration
55
logging.level.com.microsoft.durabletask=DEBUG
6+
# Use port 5009 to avoid conflict with the DTS emulator on 8080
7+
server.port=5009
68
logging.level.root=INFO
79

810
server.port=8082

0 commit comments

Comments
 (0)