title: Circular view path exception with Spring framework
body: <p>Basically, access "/" and "/a" are working on browser. Acess "/testme" is not working. Error is</p>
  
  <blockquote>
    <p>2016-03-13 15:04:37.709 ERROR 1933 --- [io-8080-exec-57]
    o.s.boot.context.web.ErrorPageFilter     : Forwarding to error page
    from request [/testmenull] due to exception [Circular view path
    [testme.html]: would dispatch back to the current handler URL
    [/XXXX/testme.html] again. Check your ViewResolver setup! (Hint: This
    may be the result of an unspecified view, due to default view name
    generation.)]</p>
  </blockquote>
  
  <p>I do a string grep, but cannot found "ViewResolver". I have no idea why "/" and "/a" work. Any idea?</p>
  
  <p>See image for more:
  <a href="https://i.stack.imgur.com/qTFmh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qTFmh.png" alt="enter image description here"></a></p>
  
  <p>All xml files:
  <a href="https://i.stack.imgur.com/st4Lk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/st4Lk.png" alt="enter image description here"></a></p>
  
  <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/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.xxxxx&lt;/groupId&gt;
    &lt;artifactId&gt;Monitor&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;!--&lt;name&gt;Monitor&lt;/name&gt;--&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;parent&gt;
        &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
        &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
        &lt;version&gt;1.1.9.RELEASE&lt;/version&gt;
    &lt;/parent&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;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;javax.websocket&lt;/groupId&gt;
            &lt;artifactId&gt;javax.websocket-api&lt;/artifactId&gt;
            &lt;version&gt;1.1&lt;/version&gt;
            &lt;scope&gt;provided&lt;/scope&gt; &lt;!--for web socket--&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;mysql&lt;/groupId&gt;
            &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
            &lt;version&gt;5.1.31&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;org.springframework.hateoas&lt;/groupId&gt;
            &lt;artifactId&gt;spring-hateoas&lt;/artifactId&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
            &lt;artifactId&gt;gson&lt;/artifactId&gt;
            &lt;version&gt;2.3&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;/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;finalName&gt;Monitor&lt;/finalName&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;version&gt;3.1&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;compilerVersion&gt;1.7&lt;/compilerVersion&gt;
                    &lt;source&gt;1.7&lt;/source&gt;
                    &lt;target&gt;1.7&lt;/target&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
            &lt;/plugin&gt;
            &lt;!--&lt;plugin&gt;--&gt;
                &lt;!--&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;--&gt;
                &lt;!--&lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;--&gt;
                &lt;!--&lt;executions&gt;--&gt;
                    &lt;!--&lt;execution&gt;--&gt;
                        &lt;!--&lt;id&gt;attach-sources&lt;/id&gt;--&gt;
                        &lt;!--&lt;goals&gt;--&gt;
                            &lt;!--&lt;goal&gt;jar&lt;/goal&gt;--&gt;
                        &lt;!--&lt;/goals&gt;--&gt;
                    &lt;!--&lt;/execution&gt;--&gt;
                &lt;!--&lt;/executions&gt;--&gt;
            &lt;!--&lt;/plugin&gt;--&gt;
        &lt;/plugins&gt;
        &lt;resources&gt;
            &lt;resource&gt;
                &lt;directory&gt;${basedir}/src/main/resources&lt;/directory&gt;
            &lt;/resource&gt;
            &lt;resource&gt;
                &lt;directory&gt;${basedir}/src/main/java&lt;/directory&gt;
            &lt;/resource&gt;
        &lt;/resources&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
  
  &lt;web-app&gt;
    &lt;display-name&gt;Archetype Created Web Application&lt;/display-name&gt;
  &lt;/web-app&gt;
  </code></pre>