Created
June 29, 2017 11:51
-
-
Save JeromeGuyon/ec6129f90d9ee47114fd1380dd693ccd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Component | |
| @EnableMongoAuditing | |
| public class AuditorAwareImpl implements AuditorAware<String> { | |
| private final static String DEFAULT_USER = "anonymous"; | |
| @Override | |
| public String getCurrentAuditor() { | |
| return DEFAULT_USER; //do you custom user retrieving policy here | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment