title: /hello Not Found
body: <p>I create a project using Spring Initializer.</p>
  <p>I added a mapping for /hello:</p>
  <pre><code>package com.propfinancing.www;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
  import org.springframework.web.bind.annotation.GetMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.bind.annotation.RestController;
  
  @RestController
  @SpringBootApplication
  public class PfWebApplication extends SpringBootServletInitializer {
  
      public static void main(String[] args) {
          SpringApplication.run(PfWebApplication.class, args);
      }
  
      @GetMapping(&quot;/hello&quot;)
      public String hello(@RequestParam(value = &quot;name&quot;, defaultValue = &quot;World&quot;) String name) {
        return String.format(&quot;Hello %s!&quot;, name);
      }
  }
  </code></pre>
  <p>I created a war file and uploaded that to my tomcat server.
  When I go to the URL <a href="http://dev.propfinancing.com/www/hello" rel="nofollow noreferrer">http://dev.propfinancing.com/www/hello</a></p>
  <p>I get a 404 - Not Found page.</p>
  <p>Any idea what went wrong?</p>