AspectJ - why “advice defined in XYZ has not been applied”?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I just started playing with AspectJ (1.6.11). I'm sending emails via commons-email libary and I'd like to know how long it takes to send a message. So this is my email sending code: import org.apache.commons.mail.Email; import org.apache.commons.mail.EmailException; import org.apache.commons.mail.SimpleEmail; public class EmailTest { public static void main(String[] args) throws EmailException { Email e = new SimpleEmail(); e.setHostName("localhost"); e.setFrom("foo@localhost"); e.addTo("batto@localhost"); e.setSubject("Test " + System