Connected to the back of mqtt, found a software test information in real time on both sides -> mqtt.fx When my server sends a request
The client can either receive the message server requests accurately
When a batch operation data, uses the previous intermediate table id loaded up a map stored in the List as a key value, which loop through the xml List public <the Map <String, Long >> getPermissionMap () {
List <the Map < String, Long >> = new new rolePermissions the ArrayList <> ();
for (the permission permission: Permissions) {
the Map <String, Long> = new new rolePermission the HashMap <> ();
rolePermission.put ( "roleId", this.id);
rolePermission.put ( "permissionId", permission.getId ());
rolePermissions.add (rolePermission);
}
return rolePermissions;
}
Today, with the next mybatis plus find that he has built-in batch add, modify, delete directly on the middle of the table can quickly process data-many,
The specific method is inherited iservice can be done by calling the specified method
this.removeByIds (objects) ; only need to pass id middle of the table is deleted
this.saveOrUpdateBatch (object) ; Save to save list requires two fields
this.saveBatch (objects) ; modified to delete the equal While saving
summarize the error encountered recently
have the chance of error when the request is successful there will be a chance to fail, began to think that the primary key is not set automatically after settings or find this situation, later found to be myself and colleagues have opened a service at the same time, his side did not set the primary key increment resulting
Our physical layer has three respectively corresponding database, return values, incoming values, all three must implement serialization Serializable, in order to carry out normal operations such as data write
Each module has provided internal and external offer, this module will need three generated provider, do not open at the same time lead to the amount of the error
This error does not know what level I'm used to return time is still there transformed into string this can only be solved
Accumulate more usually turned in error, slowly growing