Junit
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext.xml")
public class DemoTest {
@Autowired
private UserService userService;
@Test
public void hello(){
userService.save();
}
}