在用AOP写小项目的时候出现了这个问题
Error creating bean with name 's' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.ExceptionInInitializerError
翻译过来大概的意思就是
创建在类路径资源[applicationContext.xml]中定义的名为“s”的bean时出错:bean初始化失败;嵌套异常是java.lang.ExceptionInInitializerError
搜了很久,搜出来的说法就是:需要修改aspectjweaver.jar 的版本。然后我又去找了很久的jar包,找到很多都是要钱的(可恶),所以没解决。文章来源:https://www.toymoban.com/news/detail-671235.html
于是就找了为什么要jar包的版本要修改
原来是与jdk的版本有冲突,于是我就去修改jdk的版本,改成了1.8的,于是就不报错了
文章来源地址https://www.toymoban.com/news/detail-671235.html
到了这里,关于Error creating bean with name ‘s‘ defined in class path resource [applicationContext.xml]: Initiali.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!