warning no match for this type name:xxx.xxx.xxx [Xlint:invalidAbsoluteTypeName]
为什么80%的码农都做不了架构师?>>>
问题:warning no match for this type name:xxx.xxx.xxx [Xlint:invalidAbsoluteTypeName]
原因:配置切面表达式有误
execution(<修饰符模式>? <返回类型模式> <方法名模式>(<参数模式>) <异常模式>?) 除了返回类型模式、方法名模式和参数模式外,其它项都是可选的。
如:execution(* com.idea4j.apollo.demo.service.*.*(..))
execution表示拦截方法,第一个“*”表示方法的返回值是任意的,第二个“*”包下的所有类,第三个“*”任意方法,(..)表示方法的参数是任意的
常见的切面表达式
1 所有公有方法的执行
execution(public * *(..))
2 所有以set开头的公有方法的执行
execution(* set*(..))
3 AccountService接口下的所有方法的执行
execution(* com.xyz.service.AccountService.*(..))
4 com.xyz.service包下的所有方法的执行
execution(* com.xyz.service.*.*(..))
5 com.xyz.service包及其子包下的所有方法的执行
execution(* com.xyz.service..*.*(..))
6 匹配com.xyz.service包下的所有类的所有方法(不含子包)
within(com.xyz.service.*)
7 com.xyz.service包和子包的所有方法
within(com.xyz.service..*)
8 匹配AccountService的代理类(不支持通配符)
this(com.xyz.service.AccountService)
官方文档
https://docs.spring.io/spring/docs/4.2.5.RELEASE/spring-framework-reference/html/aop.html#aop-schema
转载于:https://my.oschina.net/markee/blog/3018897
warning no match for this type name:xxx.xxx.xxx [Xlint:invalidAbsoluteTypeName]相关推荐
- warning no match for this type name:com.xxx.xxx [Xlint:invalidAbsoluteTypeName]
最近项目启动遇到一个错误 Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com ...
- warning: initialization from incompatible pointer type error, forbidden解决
android kernel报错: warning: initialization from incompatible pointer type error, forbidden warning:xx ...
- CCS5.5 中报错 Does not match the target type,not loaded 的一种情况
出现现象:在使用CCS5.5调试TMS320DM642时,代码没有任何报错,却出现不能导入出数情况,报错信息是Does not match the target type,not loaded.用的是 ...
- Null return value from advice does not match primitive return type for: public abstract boolean
今天在写Spring Data JPA的时候出现了这样一个问题 Null return value from advice does not match primitive return type f ...
- Certificate for <xxx.xxx.xxx.com> doesn‘t match any of the subject alternative names: [xxx..com]
问题和解决 我这里先描述问题和解决方案吧.很多同学不太关心发生的背景. 问题表象 Certificate for <xxx.xxx.xxx.com> doesn't match any o ...
- Spring之AOP报错:Null return value from advice does not match primitive return type for
1.org.springframework.aop.AopInvocationException:Null return value from advice does not match primit ...
- spring aop Null return value from advice does not match primitive return type for总结
Null return value from advice does not match primitive return type for这个一般都是发生在代码做了环绕后. 找到源码抛出这个异常的位 ...
- vscode git报错 git warning: redirecting to https://xxx.xxx.xxxx/xxx/xxx.git/
背景:最近从websotrm转到vscode 刚开始两周开发没有问题,后面有两个常用的项目push到远程库或者拉去远程库的更新都会报错: vscode git报错 git warning: redir ...
- c语言subscripted_C语言里的 [Warning] assignment from incompatible pointer type 是什么意思啊...
展开全部 指针类型的赋值. 不同的编译器,e68a843231313335323631343130323136353331333431356566对于不同类型间的指针变量进行赋值的编译检查是不一样的, ...
最新文章
- python判断CSV文件是否空
- 原理分析之四:一次SQL查询的源码分析
- 构建一个计算机网络,计算机网络--网络构建(一)
- python自动化测试常用库_Python自动化测试常用库整理
- linux的i o模型,浅谈Linux 网络 I/O 模型简介(图文)
- 可解释性:对神经网络中层特征复杂度的解释与拆分
- 【BZOJ3439】Kpm的MC密码,trie树+dfs序+主席树
- Linux 音频驱动
- 网络协议从入门到底层原理(5)传输层(UDP、TCP - 可靠传输、流量控制、拥塞控制、建立连接、释放连接)
- Java同步数据结构之Collection-Queue
- 拓端tecdat|主题模型(LDA)案例:分析人民网留言板数据
- V-rep学习笔记:机器人逆运动学数值解法(The Jacobian Transpose Method)
- VB.Net - 环境设置
- 计算机视觉 图像算法工程师 面试问题总结
- 小学美术计算机教案模板,小学美术教案模板五篇
- 一个博士在华为的22年!
- 设计模式之工厂方法模式(附源码)
- img标签图片404异常捕获返回默认图片
- 2022制冷与空调设备运行操作考试模拟100题模拟考试平台操作
- WiFi-ESP8266入门http(3-3)网页认证上网-post请求-ESP8266程序