for stand-alone service, the primary key ID is a long integer, which needs to be non-continuous. For example, self-increment cannot be implemented because it is continuous.
I thought of using System.nanoTime () to do ID, because I haven"t practiced it. I wonder if there will be ID repetition?
the question is: 1 is this possible?
2