org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker:[376] - Bean 'redisConfig' of type [com.million.mes.basic.dbapi.config.RedisConfig$$EnhancerBySpringCGLIB$$919905d0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

时间: 2024-03-28 14:38:16 浏览: 11
这是一个 Spring 框架的日志信息,它表示 Bean 'redisConfig' 类型为 com.million.mes.basic.dbapi.config.RedisConfig$$EnhancerBySpringCGLIB$$919905d0,由于某些原因,该 Bean 不适合由所有 BeanPostProcessor 处理,例如不适合进行自动代理。BeanPostProcessor 是 Spring 框架中的扩展点,可以对 Bean 进行加工处理,例如 AOP 就是通过 BeanPostProcessor 实现的。可能的原因有很多,例如该 Bean 已经被其他 BeanPostProcessor 处理过了,或者该 Bean 不需要进行处理等等。如果您有具体的代码或配置信息,可以一起提供,以便更好地分析问题。
相关问题

org.springframework.data.repository.config.RepositoryConfigurationExtensionSupport:[349] - Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.million.mes.basic.dbapi.common.modelpagedao.ModelFormAssemblyMapper; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository

这段日志信息表明,Spring Data Redis无法确定候选接口'com.million.mes.basic.dbapi.common.modelpagedao.ModelFormAssemblyMapper'所属的存储库类型。如果你希望将此存储库作为Redis存储库使用,请考虑使用以下注解之一来注释你的实体类:org.springframework.data.redis.core.RedisHash(首选),或者考虑将以下类型之一与你的存储库扩展:org.springframework.data.keyvalue.repository.KeyValueRepository。 这个警告信息提供了一些解决方案,你可以根据你的需求选择其中一个。如果你的实体类没有使用RedisHash注解,请在实体类上添加该注解。另外,你还可以通过扩展KeyValueRepository来创建自定义存储库。如果你有其他问题或疑问,请告诉我,我会尽力回答。

mybatis-plus.configuration.interceptors=com.million.mes.basic.dbapi.config.ConnectionInterceptor写法对吗

是的,这是Mybatis-Plus中配置拦截器的方法之一。其中 `mybatis-plus.configuration.interceptors` 是Mybatis-Plus中配置拦截器的属性名,`com.million.mes.basic.dbapi.config.ConnectionInterceptor` 是你自己实现的拦截器的类名,需要替换成你自己的拦截器类的全限定名。 在 Mybatis-Plus 中配置拦截器还有其他的方法,你可以根据具体的情况选择适合你的方式。例如,你也可以通过实现 `org.apache.ibatis.plugin.Interceptor` 接口,并将该拦截器注册到 `SqlSessionFactoryBean` 中来实现拦截器的配置。

相关推荐

Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.redisson.spring.data.connection.RedissonConnection at org.redisson.spring.data.connection.RedissonConnectionFactory.getConnection(RedissonConnectionFactory.java:113) at org.springframework.data.redis.core.RedisConnectionUtils.fetchConnection(RedisConnectionUtils.java:193) at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:144) at org.springframework.data.redis.core.RedisConnectionUtils.getConnection(RedisConnectionUtils.java:105) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:211) at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:191) at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:97) at org.springframework.data.redis.core.DefaultHashOperations.get(DefaultHashOperations.java:55) at com.million.mes.basic.commonredis.server.RedisService.getCacheMapValue(RedisService.java:231) at com.million.mes.basic.dbapi.service.DataSourceService.detail(DataSourceService.java:96) at com.million.mes.basic.dbapi.service.DataSourceService$$FastClassBySpringCGLIB$$f8f33523.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at com.baomidou.dynamic.datasource.aop.DynamicDataSourceAnnotationInterceptor.invoke(DynamicDataSourceAnnotationInterceptor.java:50) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)

Caused by: java.lang.Error: Invalid memory access at com.sun.jna.Native.invokeVoid(Native Method) at com.sun.jna.Function.invoke(Function.java:415) at com.sun.jna.Function.invoke(Function.java:361) at com.sun.jna.Library$Handler.invoke(Library.java:265) at com.sun.proxy.$Proxy432.lpfSvg(Unknown Source) at jnpf.cdm.cdminfo.controller.Mes_cdm_infoController.create(Mes_cdm_infoController.java:189) at jnpf.cdm.cdminfo.controller.Mes_cdm_infoController$$FastClassBySpringCGLIB$$fcda1ce9.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708) at jnpf.cdm.cdminfo.controller.Mes_cdm_infoController$$EnhancerBySpringCGLIB$$d97e3f77.create(<generated>) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ... 49 common frames omitted

最新推荐

recommend-type

【推荐】MES系统整体解决方案-V2.0.doc

MES系统整体解决方案-V2.0,2021智能工业互联网MES5G物联网智能制造执行规划解决方案
recommend-type

沈阳新松机器人自动化有限公司MES系统方案v2.1.docx

长达150页的方案,详细介绍MES系统的规划和各个ERP、PLM、CAPP系统的集成
recommend-type

安尼梅森云动MES系统介绍.pdf

安尼梅森云动MES系统介绍,详细完整的产品设计方案助理打造一个智能的MES系统,包含: 工厂信息创建 , 产线创建, 设备创建, 工序创建,流程创建,等
recommend-type

MES制造执行系统理念.docx

MES制造执行系统,是企业信息集成的纽带,企业实施敏捷制造战略,实现车间生产敏捷化的基本手段。MES制造执行系统,是一套面向制造企业车间执行层的生产信息化管理系统,为企业提供包括制造数据管理、计划排程管理、...
recommend-type

食品行业MES系统解决方案.docx

食品加工是一个十分复杂...MES系统是近几年兴起的一个新概念,它不仅帮助食品企业提高了整体的信息化水平,同时还从很大程度上提高了生产效率 1、食品行业生产特点 2、食品行业MES系统需求 3、食品行业MES系统解决方案
recommend-type

RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz

REALTEK 8188FTV 8188eus 8188etv linux驱动程序稳定版本, 支持AP,STA 以及AP+STA 共存模式。 稳定支持linux4.0以上内核。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

Redis验证与连接:安装成功验证技巧

![Redis从入门到精通](https://img-blog.csdnimg.cn/6f39d0a2adc3456b96e804eb45032480.png) # 1. Redis安装与验证** ### 2.2 Redis验证方法 Redis验证可以通过以下方法进行: - **命令行验证:** - 打开终端,输入 `redis-cli` 命令进入 Redis 命令行。 - 输入 `ping` 命令,如果返回 "PONG",则表示 Redis 正在运行。 - **客户端验证:** - 使用 Redis 客户端(如 RedisInsight)连接到 Redis 服务器。
recommend-type

3、自定义一个函数int compareStr(char *p1, char *p2),实现两个字符串的比较。相等返回0,大于返回1,小于返回0;编写主函数main()来调用自定义函数完成测试。

下面是自定义的 `compareStr` 函数的代码实现: ```c #include <stdio.h> int compareStr(char *p1, char *p2) { while (*p1 && *p2 && (*p1 == *p2)) { p1++; p2++; } return (*p1 > *p2) - (*p1 < *p2); } int main() { char str1[100], str2[100]; int result; printf("请输入第一个字符串:");
recommend-type

c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf

校园超市商品信息管理系统课程设计旨在帮助学生深入理解程序设计的基础知识,同时锻炼他们的实际操作能力。通过设计和实现一个校园超市商品信息管理系统,学生掌握了如何利用计算机科学与技术知识解决实际问题的能力。在课程设计过程中,学生需要对超市商品和销售员的关系进行有效管理,使系统功能更全面、实用,从而提高用户体验和便利性。 学生在课程设计过程中展现了积极的学习态度和纪律,没有缺勤情况,演示过程流畅且作品具有很强的使用价值。设计报告完整详细,展现了对问题的深入思考和解决能力。在答辩环节中,学生能够自信地回答问题,展示出扎实的专业知识和逻辑思维能力。教师对学生的表现予以肯定,认为学生在课程设计中表现出色,值得称赞。 整个课程设计过程包括平时成绩、报告成绩和演示与答辩成绩三个部分,其中平时表现占比20%,报告成绩占比40%,演示与答辩成绩占比40%。通过这三个部分的综合评定,最终为学生总成绩提供参考。总评分以百分制计算,全面评估学生在课程设计中的各项表现,最终为学生提供综合评价和反馈意见。 通过校园超市商品信息管理系统课程设计,学生不仅提升了对程序设计基础知识的理解与应用能力,同时也增强了团队协作和沟通能力。这一过程旨在培养学生综合运用技术解决问题的能力,为其未来的专业发展打下坚实基础。学生在进行校园超市商品信息管理系统课程设计过程中,不仅获得了理论知识的提升,同时也锻炼了实践能力和创新思维,为其未来的职业发展奠定了坚实基础。 校园超市商品信息管理系统课程设计的目的在于促进学生对程序设计基础知识的深入理解与掌握,同时培养学生解决实际问题的能力。通过对系统功能和用户需求的全面考量,学生设计了一个实用、高效的校园超市商品信息管理系统,为用户提供了更便捷、更高效的管理和使用体验。 综上所述,校园超市商品信息管理系统课程设计是一项旨在提升学生综合能力和实践技能的重要教学活动。通过此次设计,学生不仅深化了对程序设计基础知识的理解,还培养了解决实际问题的能力和团队合作精神。这一过程将为学生未来的专业发展提供坚实基础,使其在实际工作中能够胜任更多挑战。