Код: Выделить всё
Конфигурация Java всегда жалуется на исключение:
Код: Выделить всё
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'SecurityConfig': Unsatisfied dependency expressed through field 'httpSecurity'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.security.config.annotation.web.builders.HttpSecurity' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Это проект от Scrach, вот файлы конфигурации:
https://drive.google .com/file/d/1gv0JQVwrICWKVGbcnBoS_QfGqZK8qXtX/view?usp=drive_link
https://drive.google.com/file/d/1_zz7rW ... drive_link
https://drive.google.com/file/d/1uUAX8d ... drive_link
Подробнее здесь: https://stackoverflow.com/questions/788 ... k-properly