首页 > 其他分享 > Parameter 9 of constructor in com.xxx.impl.xxxServiceImpl required a bean of type 'int' t

Parameter 9 of constructor in com.xxx.impl.xxxServiceImpl required a bean of type 'int' t

时间:2023-05-15 12:14:01浏览次数:33  
标签:xxxServiceImpl int Parameter required AllArgsConstructor bean com type

1查看Service实现类是否加了@AllArgsConstructor
2删除@AllArgsConstructor

3给每个要注入的serviceBean加@Resource

原因
lombok的@AllArgsConstructor注解会代替@Autowired注入,导致某些不需要手动注入的bean重复加了
@Autowired

标签:xxxServiceImpl,int,Parameter,required,AllArgsConstructor,bean,com,type
From: https://www.cnblogs.com/axibug/p/17401434.html

相关文章

  • TypeScript 初体验
    什么是TypeScriptTypeScript是静态类型的JavaScript超集类型系统按照「类型检查的时机」来分类,可以分为动态类型和静态类型。动态类型是指在运行时才会进行类型检查,这种语言的类型错误往往会导致运行时错误。TypeScript在运行前需要先编译为JavaScript,而在编译阶段就会......
  • docker compose fullstack example -- keycloak web grant-type: password
    fastapi-react-postgres-keycloak-ssohttps://github.com/fanqingsong/fastapi-react-postgres-keycloak-sso version:"3"services:nginx:image:nginx:1.17volumes:-./nginx/nginx.conf:/etc/nginx/conf.d/default.conf-./log......
  • Errors:java: 程序包org.springframework.stereotype不存在(解决方法)
    错误截图错误描述java:程序包org.springframework.stereotype不存在解决更改maven项目运行时的编译方式为maven找到File->Settings->Maven->Runner,进行勾选......
  • ERROR:Could not build wheels for pycocotools, which is required to install pypro
    在创建了conda虚拟环境后,下载pycocotools包,出现这个错误,终端下载包失败,从网上直接将下载好的pycocotools包导入到,所需要环境(conda环境,本机环境)比如:anaconda\envs\py38\Lib\site-packages下面pycocotools包下载:链接:https://pan.baidu.com/s/1RsV1w0GRXJZ1rR3yPBg5FA提取码:88......
  • warning Unexpected any. Specify a different type @typescript-eslint/no-explic
    参考链接场景描述使用vue3+ts开发项目时,会遇到很多警告,我们可以在配置文件中关闭它一、警告:warningUnexpectedany.Specifyadifferenttype@typescript-eslint/no-explicit-any解决方案:关闭any类型的警告。//在.eslintrc.js文件中找到rules添加一行代码即可"@ty......
  • python中的泛型使用TypeVar
    引入为什么需要TypeVarPEP484的作者希望借助typing模块引入类型提示,不改动语言的其它部分。通过精巧的元编程技术,让类支持[]运算不成问题。但是方括号内的T变量必须在某处定义,否则要大范围改动python解释器才能让泛型支持特殊的[]表示法。鉴于此,我们增加了typing.TypeVar构造函......
  • WebRTC获取IP地址问题,Uncaught TypeError: Cannot read property '1' of null
    WebRTC获取IP地址问题,UncaughtTypeError:Cannotreadproperty'1'ofnull临时接了个任务,客户要求某个账号只能在某个ip或者mac上登录,其余的情况的登录都要报错,首先就要解决看看怎么获取ip使用的获取IP的语句如下,类似的在网上很多,主要的获取的逻辑都是一样的<script>......
  • Property 'dataSource' is required
    写了一个配置类,启动项目的时候报错:Property'dataSource'isrequired原代码如下:@ConfigurationpublicclassSecurityConfigextendsWebSecurityConfigurerAdapter{@AutowiredprivatePersistentTokenRepositorypersistentTokenRepository;@Autowired......
  • Vue3 + Vite4.3 + Element-Plus + TypeScript 从0到1搭建企业级后台管理系统(前后端开
    vue3-element-admin是基于vue-element-admin升级的Vue3+ElementPlus版本的后台管理前端解决方案,技术栈为Vue3+Vite4+TypeScript+ElementPlus+Pinia+VueRouter等当前主流框架。相较于其他管理前端框架,vue3-element-admin的优势在于一有一无有配套后端、无......
  • 模板元编程--TypeList算法--类型分割
    将一个数据列表按照要求尽心分割为两个类型。usinglist1=TypeList<char,double,float,longlong,int,int>;将大于4字节的分为一组,其他分为一组:贴入Fold函数,一会儿用到:template<typenameT>conceptTL=requires{typenameT::isTypeList;typenameT::ty......