为了账号安全,请及时绑定邮箱和手机立即绑定

使用aop,配置Pointcut有问题

版本跟老师的一致,步骤也一样 老师的

@Pointcut("execution(public * com.springboot.controller.*(..))")

会报错

http://img1.sycdn.imooc.com//58c7fcad00019dc904560450.jpg

http://img1.sycdn.imooc.com//58c7fcae00017b5120560068.jpg

后来在简书看到篇文章按照上面的来写就正常了

http://img1.sycdn.imooc.com//58c7fcef0001b7b010620732.jpg@Pointcut("execution(public * com.springboot.controller..*.*(..))")

正在回答

1 回答

要写到controller包下的具体的一个类

http://img1.sycdn.imooc.com//58c800970001ea0202790126.jpg

http://img1.sycdn.imooc.com//58c800980001089a05610050.jpg


0 回复 有任何疑惑可以回复我~
#1

繁华乱浮华 提问者

非常感谢!
2017-03-15 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Spring Boot进阶之Web进阶
  • 参与学习       104214    人
  • 解答问题       425    个

《2小时学习Spring Boot》之进阶教程,针对Web方面的相关技巧

进入课程

使用aop,配置Pointcut有问题

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号