spring-projects / spring-projects/spring-session

Spring Session samples cannot be started from IntelliJ

Open
#1,641 3 comments 0 reactions 1 assignee View on GitHub

@eleftherias is already working on this.

Since May 29, 2020.

in: docs type: bug
Dominant language
Java
Stars
1.9k
Forks
1.2k
Avg merge
4h 27m
Merged PRs (30d)
55

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.