1. Personal problems
在服务A暴露接口实现层
interface
When service B calls the interface exposed by service A, save is the default method of IService. There is
a problem: when service B uses the save or insert method, the primary key id of the user will not be returned.
Two, solve
After testing, when the save or insert method is used in service A, the primary key id of the user will be returned.
So, use the save or insert method in service A and return the user's primary key id.
Define the saveUser method in service A, and return the user's primary key id after using the save or insert method.
Of course, you can also directly return the entire user entity class.
Then call the saveUser method in service B