I'm using Angular 6+ and springboot. How do I generate an id and retrieve it?
ex: I have the following page:
Whentheuserclickson"New" will make a post. And this id that was generated will appear in the Code field.
* I thought about doing a query and get the last id of the database, but I'm afraid this processing time will get the id generated by another user.