Type name pattern expected.一个Spring相关小问题.

Type name pattern expected.一个Spring相关小问题.

下面的语句中*与com之间需要有空格!

// An highlighted block
@Pointcut("execution(*com.springboot.chapter4.aspect.service.impl.UserServiceImpl.printUser(..))")
加空格后就OK啦!类比返回值与函数之间有空格,一个道理,因为*在这里表示是返回值类型通配,表示任意类型返回值都可以哈!
// An highlighted block
@Pointcut("execution(* com.springboot.chapter4.aspect.service.impl.UserServiceImpl.printUser(..))")

猜你喜欢

转载自blog.csdn.net/GZHarryAnonymous/article/details/84843703
今日推荐