package <%=packageName%>.security;

import <%=packageName%>.config.Constants;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;

/**
 * Implementation of AuditorAware based on Spring Security.
 * <p/>
 * Created by mkh1973.
 */
@Component
public class SpringSecurityAuditorAware implements AuditorAware<String> {

    public String getCurrentAuditor() {
        String userName = SecurityUtils.getCurrentLogin();
        return (userName != null ? userName : Constants.SYSTEM_ACCOUNT);
    }
}

@@ -242,39 +242,8 @@
 ty.%0A
- * %3Cp/%3E%0A * Created by mkh1973.%0A
  */%0A

Update _SpringSecurityAuditorAware.java