I am using Spring AOP with the provided default DefaultContextLoadTimeWeaver
. I would like to be able to weave persisted entities and I know I have to set a weaver option (warning from console):
warning javax.* types are not being woven because the weaver option '-Xset:weaveJavaxPackages=true' has not been specified
My search only found examples for the configuration in a .xml file, but I would really prefer this to be in my Java configuration class, where all my configurations are. Is there a way to do this?