Skip to content

ThymeleafViewResolver not used by Spring 4.1 resulting in "circular view path" error [SPR-12013] #16629

@spring-projects-issues

Description

@spring-projects-issues

Julien Martin opened SPR-12013 and commented

I use the following libraries:

  • Spring Framework 4.1.0.BUILD-SNAPSHOT
  • Spring Security 4.0.0.M1
  • Thymeleaf 2.1.3.RELEASE
  • Thymeleaf thymeleaf-extras-tiles2-spring4 2.1.1.RELEASE
  • Thymeleaf thymeleaf-extras-springsecurity3 2.1.1.RELEASE

And I have configured my view resolver as follows:

@Bean
   public ThymeleafViewResolver viewResolver() {
       ThymeleafViewResolver viewResolver = new ThymeleafViewResolver();
       viewResolver.setViewClass(ThymeleafTilesView.class);
       viewResolver.setTemplateEngine(templateEngine());
       viewResolver.setCharacterEncoding("UTF-8");
       return viewResolver;
   }

and it seems the above view resolver is not found by Spring causing it to use the default "internal view resolver" and resulting in a circular view path error.

Please note that I am not sure whether this is a Spring or Thymeleaf issue and I have therefore opened an issue in Thymeleaf too.


Affects: 4.1 RC1

Reference URL: thymeleaf/thymeleaf-spring#64

Issue Links:

Referenced from: commits 9092102

0 votes, 5 watchers

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions