error at ::0 formal unbound in pointcut
This error was reported when using aop’s @before for log prenotification
Error code here
@Before(value = "webLogAspect()")
public void logBefore(JoinPoint joinPoint,Object ret) {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
HttpServletRequest request = attributes.getRequest();
//在attribute中加入开始时间
request.setAttribute("time",System.currentTimeMillis());
}
Then, after I remove the second parameter, it is normal
@Before(value = "webLogAspect()")
public void logBefore(JoinPoint joinPoint) {
Explain that other operations are required when multiple parameters are used, otherwise an error will be reported
@Before(value = "webLogAspect() && args(ret)")
public void logBefore(JoinPoint joinPoint, Object ret) {
Problem-solving
Read More:
- Uncaught SyntaxError: Unexpected token o in JSON at position 1 [How to Solve]
- [Modified] ANTLR4 line 1:14 token recognition error at ‘(‘
- [Solved] Subversion reported an error:The repository at ‘‘has uuid
- [Solved] IDEA Error: Unknown system variable ‘tx_isolation‘ at
- [Solved] JPA Create Sheet error at the First time: Cant DROP [xxx];check that column/key exists
- [Solved] Cause: org.postgresql.util.PSQLException: ERROR: syntax error at end of input
- [Solved] Tomcat Error: org.apache.tomcat.util.digester.Digester.fatalError Parse fatal error at line [40] column [36]
- [Solved] Hibernate Error: java.lang.StackOverflowError at java.lang.Integer.toString(Integer.java:402)
- [Solved] org.hibernate.exception.SQLGrammarException: could not extract ResultSet at org.hibernate.exception
- Error in make when installing redis6.0 in centos7
- [Solved] Spring Kafka Send Error in specifies partition: Topic radar not present in metadata after 60000
- Implementation of retrial mechanism in Java
- Resin Failed to Startup Error: ERROR: transport error 202: bind failed: Address already in use: JVM_Bind Listenin (Two Resins in One PC)
- How to Solve Image Upload Error: Uncaught (in promise) DOMException: Failed to execute ‘put‘ on ‘IDBObjectStore‘
- MapReduce running in Hadoop environment with maven
- How to Close the Current Form in JAVA Swing
- How to Solve SQL comments error in the mybatis query
- Ternary operator in Java?: error: not a statement
- [Solved] Kafka in Windows error:java. nio. file. Filesystemexception: this file is in use by another program and cannot be accessed by the process
- Three ways of thread sequence alternate execution in Java lock free programming