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

com.itxiaoer.commons.web.TokenConfig Maven / Gradle / Ivy

There is a newer version: 2.3.4
Show newest version
package com.itxiaoer.commons.web;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : liuyk
 */
@Configuration
public class TokenConfig {

    @Bean
    @ConditionalOnMissingBean(TokenController.class)
    public TokenController tokenController() {
        return new TokenController();
    }

    @Bean
    public ExceptionAdvice exceptionAdvice() {
        return new ExceptionAdvice();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy