TargetImpl.java 381 B

12345678910111213141516171819202122
  1. package com.anno;
  2. import org.springframework.stereotype.Component;
  3. @Component("ttaget")
  4. public class TargetImpl implements TargetInterface {
  5. @Override
  6. public void save() {
  7. System.out.println("target save");
  8. }
  9. @Override
  10. public void save2() {
  11. System.out.println("target save2");
  12. }
  13. @Override
  14. public void throwException() {
  15. }
  16. }