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

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

The newest version!
package cn.gjing.handle;

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

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy