本文整理匯總了Java中org.springframework.boot.actuate.security.AbstractAuthorizationAuditListener類的典型用法代碼示例。如果您正苦於以下問題:Java AbstractAuthorizationAuditListener類的具體用法?Java AbstractAuthorizationAuditListener怎麽用?Java AbstractAuthorizationAuditListener使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AbstractAuthorizationAuditListener類屬於org.springframework.boot.actuate.security包,在下文中一共展示了AbstractAuthorizationAuditListener類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ownAuthorizationAuditListener
import org.springframework.boot.actuate.security.AbstractAuthorizationAuditListener; //導入依賴的package包/類
@Test
public void ownAuthorizationAuditListener() throws Exception {
registerAndRefresh(CustomAuthorizationAuditListenerConfiguration.class,
AuditAutoConfiguration.class);
assertThat(this.context.getBean(AbstractAuthorizationAuditListener.class))
.isInstanceOf(TestAuthorizationAuditListener.class);
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:8,代碼來源:AuditAutoConfigurationTests.java
示例2: authorizationAuditListener
import org.springframework.boot.actuate.security.AbstractAuthorizationAuditListener; //導入依賴的package包/類
@Bean
@ConditionalOnClass(name = "org.springframework.security.access.event.AbstractAuthorizationEvent")
@ConditionalOnMissingBean(AbstractAuthorizationAuditListener.class)
public AuthorizationAuditListener authorizationAuditListener() throws Exception {
return new AuthorizationAuditListener();
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:7,代碼來源:AuditAutoConfiguration.java