Spring Boot

37 views
Skip to first unread message

anashij...@gmail.com

unread,
Jan 9, 2018, 5:35:34 PM1/9/18
to Audit4j
Hello ,

Kindly i need some explain a bout auditing in spring boot application , i saw the audit4j-demo-springboot example and i found two classes "AuditConfig", "AuditMetaData" it's required ? if yes why ?


Janith Bandara

unread,
Jan 9, 2018, 9:40:50 PM1/9/18
to Audit4j
Hi,

Please refer Audit4j Documentation for more info.

Regards,
Janith

Franck Benault

unread,
Jan 10, 2018, 4:23:31 PM1/10/18
to Audit4j
Hello,

About AuditMetaData class
AuditMetaData is not "absolutly" mandatory but is very, very usefull.
You could use the class org.audit4j.core.DummyMetaData, but you will just have dummy values of user and origin.

The main issue is that Audit4j does not know the authentication framework used in your application.

In the example the users are defined in WebSecurityConfig
but you can imaging that you could use another authentication framework like Shiro.


About AuditConfig class
I have not found any other solution with SpringBoot
but tell me if you find another solution.

Please add question if you need more help

Regards Franck
Reply all
Reply to author
Forward
0 new messages