Skip to content

Spring Session samples cannot be started from IntelliJ #1641

Open
@mariusneo

Description

@mariusneo

Describe the bug
While trying to run the sample project spring-session-sample-boot-redis-json
the following error occurs:

2020-05-29 11:58:13.083 ERROR 25590 --- [  restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'sessionRepositoryFilterRegistration' defined in class path resource [org/springframework/boot/autoconfigure/session/SessionRepositoryFilterConfiguration.class]: Unsatisfied dependency expressed through method 'sessionRepositoryFilterRegistration' parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.session.web.http.SessionRepositoryFilter<?>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

To Reproduce
Use IntelliJ IDEA 2020
Use either master branch or 2.3.0.RELEASE tag
Run the Application class from the project

Note that the integration BootTests run successfully.

Expected behavior
The application should start

https://github.com/spring-projects/spring-session/tree/master/spring-session-samples/spring-session-sample-boot-redis-simple

Metadata

Metadata

Assignees

Labels

in: docsAn issue in Documentation or samplestype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions