title: SpringBoot load SQL on cucumber step
body: <p>Im using SpringBoot, Cucumber and RestAssured for my Integration/Functional Tests, the problem is @Sql does not work on @Given annotation. Is there a way to execute SQL between steps?</p>
  
  <p>Here's my MainDef</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(classes = Application.class, loader = SpringBootContextLoader.class)
  @WebAppConfiguration
  public abstract class MainDef {}
  </code></pre>
  
  <p>Here's the Steps:</p>
  
  <pre><code>public class UserSteps extends MainDef {
  
      @Given("^delete_users$")        
      @Sql("classpath:config/usersql/deleteUser.sql")
      public void delete_users() throws Throwable {
  
      }
  ...
  </code></pre>
  
  <p>Here's the Runner</p>
  
  <pre><code>@RunWith(Cucumber.class)
  @CucumberOptions(format = "pretty", features = "src/test/resources/feature/", tags = "~@ignore",glue = {"com.user.definition"})
  public class CucumberTest { //NOSONAR
  }
  </code></pre>