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

com.healthy.common.security.social.qq.config.QQConfig Maven / Gradle / Ivy

There is a newer version: 1.2.1.RELEASE
Show newest version
package com.healthy.common.security.social.qq.config;

import com.healthy.common.security.social.view.HealthyConnectView;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.View;

@Configuration
@ConditionalOnProperty(prefix = "healthy.security.social.qq", name = "app-id")
public class QQConfig {

    /**
     * connect/qqConnect格式为: connect/{providerId}Connect
     * 配置默认QQ绑定/解绑成功的返回页
     *
     * @return
     */
    @Bean({"connect/qqConnect", "connect/qqConnected"})
    @ConditionalOnMissingBean(name = "qqConnectedView")
    public View qqConnectedView() {
        return new HealthyConnectView();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy