update
This commit is contained in:
parent
d3a0b60871
commit
912a83d7d4
@ -25,6 +25,8 @@ categories:
|
||||
|
||||
通过`@Transactional`开启事务。在`UserService`中定义一个事务方法`save`.然后在`UserController`中注入`UserDao`,并调用`save`方法。
|
||||
|
||||
<!-- more -->
|
||||
|
||||
```java
|
||||
@Service
|
||||
public class UserService{
|
||||
|
Loading…
x
Reference in New Issue
Block a user