com.github.taccisum.shiro.web.autoconfigure.AbstractShiroBeanAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shiro-starter Show documentation
Show all versions of shiro-starter Show documentation
another spring boot starter for shiro
package com.github.taccisum.shiro.web.autoconfigure;
import org.apache.shiro.event.EventBus;
import org.apache.shiro.spring.LifecycleBeanPostProcessor;
import org.apache.shiro.spring.ShiroEventBusBeanPostProcessor;
import org.apache.shiro.spring.config.AbstractShiroBeanConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
/**
* @author tac - [email protected]
* @since 2018/9/3
*/
public class AbstractShiroBeanAutoConfiguration extends AbstractShiroBeanConfiguration {
@Bean
@ConditionalOnMissingBean
@Override
public LifecycleBeanPostProcessor lifecycleBeanPostProcessor() {
return super.lifecycleBeanPostProcessor();
}
@Bean
@ConditionalOnMissingBean
@Override
public EventBus eventBus() {
return super.eventBus();
}
@Bean
@ConditionalOnMissingBean
@Override
public ShiroEventBusBeanPostProcessor shiroEventBusAwareBeanPostProcessor() {
return super.shiroEventBusAwareBeanPostProcessor();
}
}