Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

192
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda