十一月 03, 2020 9:06:06 上午 org.springframework.context.support.ClassPathXmlApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘user’ defined in file [D:\idea\code\spring5New\spring5_demo4\out\production\spring5_demo4\com\feng\spring5\aopanno\User.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting ‘)’ at character position 11
excution(* com.feng.spring5.aopanno.User.add(…))
^^^
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘user’ defined in file

这个错误原因是我单词写错了:看报错信息如下
Pointcut is not well-formed: expecting
切入点格式不正确:应为

下面的是错误和正确代码的对比:(excution和execution这个单词我少写了一个e字母)

@Before(value = "excution(* com.feng.spring5.aopanno.User.add(..))")
public void beforePerson(){System.out.println("Person before...");
}@Before(value = "execution(* com.feng.spring5.aopanno.User.add(..))")
public void beforePerson(){System.out.println("Person before...");
}

Error creating bean with name ‘user‘ defined in file //Pointcut is not well-formed: expecting相关推荐

  1. AOP Error creating bean with name ‘myCaculator‘ defined in file [XXX]

    大家看一下详细报错 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'my ...

  2. 错误记录(五)Error creating bean with name 'sessionFactory' defined in file

    安利一个,关注后端技术精选,号内回复"学习资料",领取100套小程序源码+小程序开发视频和Java经典书籍电子版! 以下是正文: 在hibernate和spring整合时,出现错误 ...

  3. 轻松解决 “Error creating bean with name 'indentDao' defined in file”的错误(一)

      呈上错误的代码信息(核心错误代码),尝尝错误的信息源.你们可以找到具体错在哪里吗? org.springframework.beans.factory.BeanCreationException: ...

  4. Error creating bean with name ‘BAdminMapper‘ defined in file [C:\Users\ASUS\Desktop\FleakMarket-mast

    项目最初是可正常运行的,我只是把一些.java文件放到(就是直接用鼠标拖动文件)其他包下,然后出现下面这个对话框 Refactor后,当我重新Run'Application'时,意外发生了! Stop ...

  5. Error creating bean with name ‘xxxxxLogMapper‘ defined in file

    记一次报错,百度查询许久无果.最后通过自己的细心找到的. 看到这个报错第一时间以为是哪个类未被扫描到上网查了一通发现都不是. 严重: Context initialization failed org ...

  6. 杂记——4.书写spring时出现的Error creating bean with name ‘user0‘ defined in file错误

    目录 1.问题描述 2.情况描述: 3. 解决方法 4. 问题原因 1.问题描述 当我们运行一个spring程序时,出现下图的错误: 重点语句: Error creating bean with na ...

  7. Error creating bean with name 'userService' defined in file [D:\eclipse-jee-neon-3-win32-x86_64\jav

    错误原因 Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or speci ...

  8. SSM整合时出错:Error creating bean with name ‘studentService‘ defined in file [/Users...

    出现这个错误的原因是spring在整合junit单元测试时,导入坐标错误导致的. 错误信息: /Library/Java/JavaVirtualMachines/jdk1.8.0_331.jdk/Co ...

  9. 关于spring boot启动报Error creating bean with name ‘XXX‘ defined in file异常

    记录一下出现这种异常的原因 1.namespace对应的名字不对 2.有些靠ioc注入的类没有加@service之类生成bean的注解 3.mapper.xml中#{}里没有写参数名 4.parame ...

  10. Error creating bean with name ‘tokenBean‘ defined spring找不到Bean

    今天遇到一个奇葩的问题,报错为spring找不到bean org.springframework.beans.factory.BeanCreationException: Error creating ...

最新文章

  1. 人眼中亮斑的检测、定位和去除(2)
  2. -webkit-scrollbar
  3. vs mfc数据与控件绑定错了_ASP.NET Core Blazor Webassembly 之 数据绑定
  4. 模块化日常:开源库与私有库重名
  5. AngularJS JetBrains WebStorm简介
  6. 断网重启路由器就好_每天都要重启路由器?难怪WIFI越用越慢,宽带师傅透露其中窍门...
  7. CMU 15-213 Introduction to Computer Systems学习笔记(5) Machine-Level Programming-Control
  8. MATLAB矩阵合并
  9. python语言是一种胶水语言吗_Python是唯一被称为“胶水语言”的编程语言?事实并非如此...
  10. 六类网线钳能压五类水晶头吗_多功能网线钳的使用方法?“普通网线钳”能压“七类水晶头”吗?...
  11. Mac制作Windows 10 U盘启动盘
  12. 【实习日报】2019年5月 前端开发实习工作日报汇总
  13. linux下的etc是什么意思
  14. 智能暖风机——1.硬件搭建
  15. Python开发mysql和mongo 连接类
  16. 对于编码器与解码器的理解
  17. 人生是什么?感悟3:工作不是生活的全部
  18. docker报错:WSL 2 installation is incomplete
  19. 检测设备摄像头、指南针、录音、陀…
  20. Android Studio模拟器如何设置中文输入法

热门文章

  1. 华侨大学计算机转专业要求,2021年华侨大学大一新生转专业及入学考试相关规定...
  2. 图解“华为云潮汕火锅”的“牛里乾坤”
  3. w10共享网络没有计算机,win10网络共享找不到对方电脑怎么办
  4. 用户-渠道的ROI计算及优化方案
  5. 卡内基梅隆大学计算机专业介绍,卡内基梅隆大学计算机专业介绍 全美大学计算机专业榜首...
  6. swper插件:刷新页面,banner轮播图出不来
  7. 管理之路:你的格局,决定你的结局
  8. UE4创建VR项目笔记
  9. day18Excise1
  10. 51单片机数码管密码锁