18 © Luxoft Training 2012 public class WriteEmployeeToDB implements ApplicationListener { @Autowired private DB db; public void onApplicationEvent(EmployeeRegitrationEvent event) { db.save(event.getEmployee()); System.out.println(
{}