Some records of throwing exceptions

1. When an exception is thrown, if the database persistence operation needs to be rolled back, a RuntimeException needs to be thrown. Just use trycatch to handle the exception, and the operation will still be performed.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324656879&siteId=291194637