Generate JHipster 9.3.0 baseline application

This commit is contained in:
jieun committed 2026-10-20 17:50:01 +09:00
1 parent 0a9b7b923f
commit 1d97cc4e31
345 files changed
+25563

No files matched your search

@@ -0,0 +1,18 @@
package com.example.questionbank.security;
import com.example.questionbank.config.Constants;
import java.util.Optional;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;
/**
* Implementation of {@link AuditorAware} based on Spring Security.
*/
@Component
public class SpringSecurityAuditorAware implements AuditorAware<String> {
@Override
public Optional<String> getCurrentAuditor() {
return Optional.of(SecurityUtils.getCurrentUserLogin().orElse(Constants.SYSTEM));
}
}