latecnologiaavanza / registro-usuarios-spring

Inicio de sesión y registro de usuarios en Spring
14 stars 7 forks source link

Error Circular Reference when startup the application #1

Open hendisantika opened 2 years ago

hendisantika commented 2 years ago

Hi @ChristianRaulRamirez ,

It good example. But I have Error Circular Reference when startup the application

***************************
APPLICATION FAILED TO START
***************************

Description:

The dependencies of some of the beans in the application context form a cycle:

   registroControlador (field private com.registro.usuarios.servicio.UsuarioServicio com.registro.usuarios.controlador.RegistroControlador.servicio)
┌─────┐
|  usuarioServicioImpl (field private org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder com.registro.usuarios.servicio.UsuarioServicioImpl.passwordEncoder)
↑     ↓
|  securityConfiguration (field private com.registro.usuarios.servicio.UsuarioServicio com.registro.usuarios.seguridad.SecurityConfiguration.usuarioServicio)
└─────┘

Action:

Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
latecnologiaavanza commented 2 years ago

Hola , te comparto el código para que lo revises https://github.com/ChristianRaulRamirez/registro-usuarios-spring

El vie, 8 abr 2022 a las 12:54, 1992robert @.***>) escribió:

Disculpe como se soluciono eso? no he podido

— Reply to this email directly, view it on GitHub https://github.com/ChristianRaulRamirez/registro-usuarios-spring/issues/1#issuecomment-1093138119, or unsubscribe https://github.com/notifications/unsubscribe-auth/ART3W5APN73F33GXJU4GGSDVEBXGRANCNFSM5KPCVT2A . You are receiving this because you were mentioned.Message ID: @.*** com>