Spring boot example: Can't access restlet from browser
<p>I tried to build a very basic spring boot example based on this <a href="https://spring.io/guides/gs/spring-boot/" rel="nofollow noreferrer">spring-boot guide</a>. Tests works as expected but I can't access the restlet via <a href="http://localhost/ei-bacon/test" rel="nofollow noreferrer">http://localhost/ei-bacon/test</a> because it will return a HTTP 404 error.</p>

<p>HelloController.java:</p>

<pre><code>@RestController
public class HelloController {

    @RequestMapping("/")
    public String index() {
        return "Ei Bacon welcomes you!";
    }

    @RequestMapping("/test")
    public String test() {
        return "Ei Bacon welcomes you again!";
    }
}
</code></pre>

<p>There may be a clash with the index file (/index.html) and the first request mapping. But the second one (/test) should work but doesn't. Do I enter the wrong url?</p>

<p>context.xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;Context path="/ei-bacon"/&gt;
</code></pre>

<p>Application.java:</p>

<pre><code>package ch.ffhs.innt.eibacon.hello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
</code></pre>