Real world example of application of the command pattern
问题 Command pattern can be used to implement Transactional behavior (and Undo ). But I could not find an example of these by googling. I could only find some trivial examples of a lamp that is switched on or off . Where can I find a coding example (preferably in Java )of this/these behaviors implemented using the Command Pattern ? 回答1: In one of our projects, we have the following requirement: Create a record in DB. Call a service to update a related record. Call another service to log a ticket.