title: @EnableWebFlux and thymeleaf not working together
body: <p>Is there any restriction on using thymeleaf with springboot application with main class <strong>annotated with @EnableWebFlux.</strong></p>
  
  <p>If I just comment @EnableWebFlux in the below class everything works. Wasted 2 days just to find where to comment to get things working :).</p>
  
  <pre><code>@EnableWebFlux
  @SpringBootApplication(exclude = {GsonAutoConfiguration.class})
  public class BootApplication {
  
      public static void main(String[] args)
      {
          SpringApplication springApplication = new SpringApplication(BootApplication.class);
          springApplication.setWebApplicationType(WebApplicationType.REACTIVE);
          springApplication.run(args);
      }
  }
  </code></pre>
  
  <p>Uncommenting it I cannot reach any of my html pages and error shown is below:</p>
  
  <blockquote>
    <p>Whitelabel Error Page This application has no configured error view,
    so you are seeing this as a fallback.</p>
    
    <p>Thu Apr 11 20:20:13 IST 2019 There was an unexpected error
    (type=Internal Server Error, status=500). Could not resolve view with
    name 'index'.</p>
  </blockquote>
  
  <p>Below is my controller class:</p>
  
  <pre><code>@Controller
  public class SimpleController {
      @Value("${spring.application.name}")
      String appName;
  
      @GetMapping(path="/home", produces = "text/html")
      public String homePage(Model model) {
          //model.addAttribute("appName", appName);
          return "home";
      }
  
      @RequestMapping(value = "/", method = RequestMethod.GET)
      public String index(final Model model) {
  
          // data streaming, data driven mode.
          IReactiveDataDriverContextVariable reactiveDataDrivenMode =
                  new ReactiveDataDriverContextVariable(Flux.just("a") , 1);
  
          model.addAttribute("movies", reactiveDataDrivenMode);
  
          return "index";
  
      }
  }
  </code></pre>
  
  <p>application.properties :</p>
  
  <pre><code>server.port=8099
  spring.thymeleaf.cache=false
  spring.thymeleaf.enabled=true
  spring.thymeleaf.prefix=classpath:/templates/
  spring.thymeleaf.suffix=.html
  
  spring.application.name=Bootstrap Spring Boot
  </code></pre>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.nano&lt;/groupId&gt;
      &lt;artifactId&gt;thymeleaf&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;thymeleaf&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;log4jVersion.version&gt;2.10.0&lt;/log4jVersion.version&gt;
          &lt;slf4jVersion.version&gt;1.7.25&lt;/slf4jVersion.version&gt;
          &lt;springBoot.version&gt;2.1.3.RELEASE&lt;/springBoot.version&gt;
          &lt;jackson.version&gt;2.9.8&lt;/jackson.version&gt;
          &lt;buildGroup&gt;d&lt;/buildGroup&gt;
          &lt;buildName&gt;e&lt;/buildName&gt;
          &lt;deployable&gt;true&lt;/deployable&gt;
  
      &lt;/properties&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;spring-snapshots&lt;/id&gt;
              &lt;name&gt;Spring Snapshots&lt;/name&gt;
              &lt;url&gt;http://repo.spring.io/libs-snapshot&lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;file&lt;/id&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;checksumPolicy&gt;ignore&lt;/checksumPolicy&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
              &lt;url&gt;file://${project.basedir}/lib&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
              &lt;version&gt;${springBoot.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-webflux&lt;/artifactId&gt;
              &lt;version&gt;${springBoot.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
              &lt;version&gt;${springBoot.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
              &lt;version&gt;${springBoot.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
              &lt;version&gt;${jackson.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
              &lt;version&gt;${jackson.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
              &lt;version&gt;${jackson.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;${slf4jVersion.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-over-slf4j&lt;/artifactId&gt;
              &lt;version&gt;${slf4jVersion.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
              &lt;version&gt;${log4jVersion.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-api&lt;/artifactId&gt;
              &lt;version&gt;${log4jVersion.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j-slf4j-impl&lt;/artifactId&gt;
              &lt;version&gt;${log4jVersion.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;3.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;!--&lt;version&gt;3.1&lt;/version&gt; --&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.0.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;skipSource&gt;false&lt;/skipSource&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
                  &lt;artifactId&gt;sonar-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.6&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>