Why server complaining about aspectOf is missing?
问题 I am currently trying to inject Spring bean in AspectJ like the code shown below, anyhow I the server (WAS Liberty Profile) keep complaining the method aspectOf is missing. May I know how could I solve this problem? application-context.xml <aop:aspectj-autoproxy/> <import resource="/context-file-A.xml"/> context-file-A.xml <bean id="loggingAspect" class="com.huahsin.LoggingAspect" factory-method="aspectOf"> JAVA code @Aspect public class LoggingAspect { ... } 回答1: This is a common error when