You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
485 B

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. package com.gcc.communityHall;
  2. import java.util.Optional;
  3. import org.springframework.data.domain.AuditorAware;
  4. import org.springframework.stereotype.Component;
  5. @Component("auditAwareImpl")
  6. public class AuditAwareImpl implements AuditorAware<String> {
  7. /**
  8. * Returns the current auditor of the application.
  9. *
  10. * @return the current auditor.
  11. */
  12. @Override
  13. public Optional<String> getCurrentAuditor() {
  14. return Optional.of("ACCOUNTS_MS");
  15. }
  16. }