how to change dynamodb port number code example

Example 1: how to change dynamodb port number

$ java -jar DynamoDBLocal.jar
Initializing DynamoDB Local with the following configuration:
Port:   8001
InMemory:   false
DbPath: null
SharedDb:   false
shouldDelayTransientStatuses:   false
CorsParams: *

Example 2: how to change dynamodb port number

$ java -jar DynamoDBLocal.jar
Initializing DynamoDB Local with the following configuration:
Port:   8000
InMemory:   false
DbPath: null
SharedDb:   false
shouldDelayTransientStatuses:   false
CorsParams: *