Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

196
Visualizações
Spring Boot: purpose of @EnableSocial anotation

in my Spring Boot app I am implementing the social login using Spring Social (1.1.4.RELEASE), I have following configuration class:

@Configuration
@EnableSocial
public class SocialConfig extends SocialConfigurerAdapter {

I see that @EnableSocial calls @Import(SocialConfiguration.class), but when I remove annotation @EnableSocial the social login works the same and SocialConfiguration is used anyway.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It's difficult to say without knowing more about your code, but even if you don't use @EnableSocial, Spring Boot will still assume you mean to use it if you provide sufficient social information (I'll use Facebook as an example here):

  1. Your project depends on org.springframework.social:spring-social-facebook directly or transitively through for example org.springframework.boot:spring-boot-starter-social-facebook.

  2. You specify information that the app can use to connect to the social network site. To figure out exactly what you need for Spring Boot to automatically configure it, you should check out the AutoConfiguration class for the social site in question, for example FacebookAutoConfiguration.

By the way, here's an example on how to get it working without @EnableSocial. Does it look similar to your setup? https://spring.io/guides/gs/accessing-facebook/

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda