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

com.healthy.common.security.social.weixinmp.config.WeixinMpConfig Maven / Gradle / Ivy

There is a newer version: 1.2.1.RELEASE
Show newest version
package com.healthy.common.security.social.weixinmp.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.weixinmp", name = "app-id")
public class WeixinMpConfig {

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy