com.healthy.common.security.social.qq.config.QQConfig Maven / Gradle / Ivy
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();
}
}