All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.gjing.handle.ToolsAutoConfiguration Maven / Gradle / Ivy

package cn.gjing.handle;

import cn.gjing.ex.CommonExceptionHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Gjing
 **/
@Configuration
public class ToolsAutoConfiguration {

    @Bean
    @ConditionalOnWebApplication
    @ConditionalOnClass(NotNullProcessor.class)
    public NotNullProcessor notNullProxy() {
        return new NotNullProcessor();
    }

    @Bean
    @ConditionalOnClass(CommonExceptionHandler.class)
    public CommonExceptionHandler commonExceptionHandler() {
        return new CommonExceptionHandler();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy