How to execute few steps before each feature file and after feature file in Cucumber+JVM+Junit project
<p>I want to execute few DB connection script to get user list before each test class and close db connection after complete of all test case of test class.
Mean want to execute Before feature and after feature. </p>

<p>I had tried to use @BeforeClass and @AfterClass of Junit  in my step definition file where all test are written in given when and then format.
But @BeforeClass and @AfterClass were not executing  . Please help me </p>