Skip to content

Commit 0ae6202

Browse files
Update CustomerServiceImpl.java
1 parent 942be0a commit 0ae6202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SpringBootMVC/SpringBoot-MVC-CacheManagement/src/main/java/com/app/service/impl/CustomerServiceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void deleteCustomer(Integer custId)
6060
@Override
6161
@Transactional
6262
@CachePut(value="cust-cache",key="#custId")
63-
public Customer updateCust(Integer custId,Customer c) { // first id, then object
63+
public Customer updateCust(Integer custId,Customer c) { // // first id, then object and for CachePut update mathod must return same object
6464

6565
return repo.save(c);
6666
}

0 commit comments

Comments
 (0)