и sessionmanager , это ошибка
и sessionManager , это ошибка
и sessionManager , это ошибка
и sessionManager , это ошибка
Код: Выделить всё
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionManager' defined in class path resource [abc.class]: No matching factory method found on class [abc.MsConfig]: factory bean 'mssConfig'; factory method 'sessionManager()'. Check that a method with the specified name exists and that it is non-static.
< /code>
Пример: < /p>
public class A extends AbstractVaultConfiguration{
@Override
@Bean
public ClientAuthentication clientAuthentication(){
// Some Custom Implementation
...
}
@Override
public SessionManager sessionManager(){
// Some Custom Implementation
...
}
}
public class B extends AbstractVaultConfiguration{
@Override
@Bean(name = "customClientAuthentication")
public ClientAuthentication clientAuthentication(){
// Some Custom Implementation
...
}
@Override
@Bean(name = "customSessionManager")
public SessionManager sessionManager(){
// Some Custom Implementation
...
}
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... springboot