Hibernate envers spring web app how to log username
问题 I am using hiberbate 3.5 and spring 3.x I have envers working and the ... _aud and revinfo record are now being written. I now need to add the username to the audit record I'm guessing revinfo is the best place I have seen an example for seam app but nothing for spring app in jboss Can anyone help with this please. My main aim is to be able to record the windows authenticated user. 回答1: The Envers documentation has an answer for this if you use Seam. public class ExampleListener implements