Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. package com.pig.spring.springaop.springaop.business;
  2.  
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5.  
  6. import com.pig.spring.springaop.springaop.aspect.TrackTime;
  7. import com.pig.spring.springaop.springaop.data.Dao1;
  8.  
  9. @Service
  10. public class Business1 {
  11.  
  12. @Autowired
  13. private Dao1 dao1;
  14.  
  15. @TrackTime //這邊多個annotation
  16. public String calculateSomething() {
  17. //Business logic
  18. return dao1.retriveSomething();
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement