首页 > 其他分享 >SSM框架遇到异常Error creating bean with name 'org.springframework.cache.interceptor.CacheInterceptor#

SSM框架遇到异常Error creating bean with name 'org.springframework.cache.interceptor.CacheInterceptor#

时间:2022-11-20 16:05:08浏览次数:69  
标签:www http creating CacheInterceptor cache springframework context org schema


昨天搭ssm框架时,遇到上面的异常,一脸懵比,我没用过这个bean啊,后来度娘找到了解决方法,是mvc的配置文件

<mvc:annotation-driven/>

,idea自动导入命名空间时出现了问题,导成了↓(含 cache) 这种,删除掉重新导入就行了。


1. ​​<beans xmln="http://www.springframework.org/schema/beans"​​
2. ​​xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"​​
3. ​​xmlns:context="http://www.springframework.org/schema/context"​​
4. ​​<span style="color:#ff0000;"> xmlns:mvc="http://www.springframework.org/schema/cache"</span>​​
5. ​​xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd <span style="color:#ff0000;">http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsd</span>">​​


正确的命名空间是↓ 这种:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">

标签:www,http,creating,CacheInterceptor,cache,springframework,context,org,schema
From: https://blog.51cto.com/u_15882671/5871548

相关文章

  • guava cache使用记录
    一、创建cache对象创建cache对象一般有两种写法,一种返回cache对象,一种返回loadingCache对象   loadingCache继承cache,也意味这cache的能力loadingcache都有,分别看......
  • ORA-06508: PL/SQL: could not find program unit being called: "APEX_030200.WWV_FL
    今天从Windows上把一个1TB的数据库导入到linuxoracle11g中,频繁出现如下的APEX报错:FriNov1815:43:412022Errorsinfile/u01/app/oracle/diag/rdbms/dagl/dagl/tra......
  • 项目引入缓存Cache
    项目引入缓存Cache随着项目代码的书写变多,回过来发现,代码只局限于完成功能,或者在完成功能的基础上进行优化,但是对于性能问题考虑的不是很深入,在平时中也接触不到高并发等......
  • [SpringBoot-Dubbo] 报错:NoClassDefFoundError: org/apache/curator/framework/recipe
    NoClassDefFoundError:org/apache/curator/framework/recipes/cache/NodeCacheListener缺少curator依赖<dependency><groupId>org.apache.curator</groupId><ar......
  • idea每次启动后,均要执行Invalidate Caches操作,否则会有部分引入的依赖飘红;
    背景:随着项目代码量的增加,某日启动idea后,部分引入的依赖漂红;每一次启动idea后,均要执行清除缓存才能使用;file-->InvalidateCaches…解决方案:help-->EditCus......
  • config.cache 配置缓存fixture
    目录介绍函数缓存相关命令介绍config.cache是一个实例pytest.Cache:该config.cache对象允许其他插件和装置在测试运行中存储和检索值。要从fixtures请求访问它pytestco......
  • Memcached内存缓存服务
       内存缓存(Memcached)是一个开源的、高性能的分布式内存对象缓存系统。通过在内存中缓存数据和对象来减少读取数据库的次数,从而提高网站访问速度,加速动态WEB应用、......
  • 一些网络编程方面的总结,以及redis、memcache、nginx组件的一些介绍
    网络编程主要关注的一些问题主要关注3个方面的问题连接的建立连接的断开消息的发送和到达连接的建立主要分为两种情况:服务器处理接受客户端的连接;服务端作为客户......
  • ccache使用简介
    目录ccache是什么ccache能做什么ccache的效率如何ccache如何使用安装cccheccache的使用方式ccache使用情况小结ccache是什么ccache--“compilercache”的缩写,是一个g......
  • [15-445]Memory Management + Buffer Cache memo
    这一章节的重点在bufferpoolmanager  bufferpoolmanager这一章学完我感觉我才理解了,其实我在数据库里拿到所有的数据似乎都过了一次内存。而内存有自己的算法和......