When serverless stop , table are lost in dynamodb local

Do you mean a DynamoDB local plugin, or the Java-based utility provided by AWS?

Either way, the DDB instance probably only stores your data in-memory, so everything is getting dropped when the process stops.