title: @DeleteMapping not recognized
body: <p>I am new with spring boot, is very simple my question but I can´t find where is the problem.</p>
  
  <p>I have a basic @GetMapping and @DeleteMapping </p>
  
  <pre><code>@RestController
      public class MyController
      {
         private MyServiceImpl myService;
  
         @Autowired
         public MyController(MyServiceImpl myService)
         {
            this.myService = myService;
         }
  
         @GetMapping("/test")
         public List&lt;Scan&gt;  getTestData(@RequestParam(value = "test_id", required = true) String test_id) {
            return myService.findByTestId( test_id );
         }
  
        @DeleteMapping("/test")
         public int deleteData(@RequestParam(value = "test_id", required = true) String test_id){
            return myService.deleteTest( test_id );
         }
  
   @DeleteMapping("/test2")
     public String deleteArticle() {
        return "Test";
     }
  
      }
  </code></pre>
  
  <p>I am testing with Postman, the Get request is working, but the delete request is not. Even when I debug the spring boot application. The GetMapping is called, whereas the delete is not "reacting" /called</p>
  
  <p>Maybe is not enough information, but I even tested <strong>@DeleteMapping("/test2")</strong> is not doing anything, I mean, I get no response, and in Postman it stays "loading..."</p>
  
  <p>Any suggestions?</p>
  
  <p>My complete POM</p>
  
  <p>http://maven.apache.org/xsd/maven-4.0.0.xsd">
      4.0.0</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;com.ttt.pdt&lt;/groupId&gt;
      &lt;artifactId&gt;pdt-base&lt;/artifactId&gt;
      &lt;version&gt;2.0-SNAPSHOT&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;pdt-service&lt;/artifactId&gt;
  &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
      &lt;/dependency&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;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
          &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
          &lt;scope&gt;runtime&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger2&lt;/artifactId&gt;
          &lt;version&gt;2.4.0&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;io.springfox&lt;/groupId&gt;
          &lt;artifactId&gt;springfox-swagger-ui&lt;/artifactId&gt;
          &lt;version&gt;2.4.0&lt;/version&gt;
      &lt;/dependency&gt;
  
  &lt;/dependencies&gt;
  &lt;build&gt;
      &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
      &lt;plugins&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;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>The parent (pdt-base) has</p>
  
  <pre><code>&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;2.0.3.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Giwez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Giwez.png" alt="test_no is equivalent to test_id"></a></p>
  
  <p>MyServiceImpl</p>
  
  <pre><code>@Service
  public class MyServiceImpl
  {
     private ScnDao scnDao;
  
     @Autowired
     public ScanServiceImpl(ScnDao scnDao){
        this.scnDao = scnDao;
     }
  
     public int deleteTest( String test_id )
     {
        return scnDao.deleteTest( test_id );
     }
  
  }
  
  public interface ScanDao
  {
  
     int deleteTest( String test_id )
  }
  
  @Repository
      public class ScnPostgres implements ScnDao
      {
  
         private JdbcTemplate jdbcTemplate;
  
         @Autowired
         public ScnPostgres( JdbcTemplate jdbcTemplate )
         {
            this.jdbcTemplate = jdbcTemplate;
         }
  
         public int deleteTest( String test_id )
          {
              String SQL = "DELETE FROM scn WHERE test_id = ?";
              return jdbcTemplate.update( SQL, new String[] { test_id } );
          }
  
      }
  </code></pre>