fun.fengwk.convention4j.springboot.starter.validation.SpringConventionCheckerAutoConfiguration Maven / Gradle / Ivy
package fun.fengwk.convention4j.springboot.starter.validation;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.event.ContextRefreshedEvent;
/**
* @author fengwk
*/
@Configuration
public class SpringConventionCheckerAutoConfiguration implements ApplicationListener {
private final ApplicationContext applicationContext;
public SpringConventionCheckerAutoConfiguration(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}
@Override
public void onApplicationEvent(ContextRefreshedEvent event) {
SpringConventionCheckerProvider.setBeanFactory(applicationContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy