Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 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. import com.pig.spring.springaop.springaop.data.Dao2;
  6.  
  7. @Service
  8. public class Business2 {
  9. //建立第二個企業服務,並調用第二個資料源
  10. @Autowired
  11. private Dao2 dao2;
  12.  
  13. public String calculateSomething() {
  14. //Business logic
  15. return dao2.retriveSomething();
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement