IntelliJ Idea如何解决Could not autowire. No beans of 'xxxx' type found的错误提示
问题描述
在idea中进行开发时,经常会遇见Could not autowire. No beans of 'xxxx' type found的错误提示,这样的是不影响程序编译和运行的,但是看起来会很不舒服。

解决办法
1. 检查@Service、@Resource等注解的包是否引入正确
正确包路径:
org.springframework.stereotype.Service
如果是其他包,需要改成上面正确路径
2. 降低Autowire的检测级别,具体步骤如下图:

将error 改选为Warning即可。
IntelliJ Idea如何解决Could not autowire. No beans of 'xxxx' type found的错误提示的更多相关文章
- IntelliJ Idea 解决 Could not autowire. No beans of 'xxxx' type found 的错误提示
		
IntelliJ Idea 解决 Could not autowire. No beans of 'xxxx' type found 的错误提示哈,在使用 @Autowired 时,今天又遇一坑,这俩 ...
 - IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示
		
本文转自:http://blog.csdn.net/u012453843/article/details/54906905 1.问题描述 在Idea的spring工程里,经常会遇到Could not ...
 - IntelliJ Idea取消Could not autowire. No beans of 'xxxx' type found的错误提示
		
1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示.但程序的编译和运行都是没有问题的, ...
 - 【转】IntelliJ Idea取消Could not autowire. No beans of 'xxxx' type found的错误提示
		
1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示.但程序的编译和运行都是没有问题的, ...
 - Could not autowire. No beans of 'xxxx' type found的错误
		
在Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示.但程序的编译和运行都是没有问题的,这个错误提示并 ...
 - 解决 "Could not autowire. No beans of  'SationMapper' type found" 的问题
		
网上查找的方法,附上原文链接:https://blog.csdn.net/Coder_Knight/article/details/83999139 方法1:在mapper文件上加@Repositor ...
 - SpringBoot学习- 7、问题Could not autowire. No beans of 'xxxx' type found处理
		
SpringBoot学习足迹 这个问题网上有好多同学都提到这个问题,代码可以运行,但是就是有红线,强迫症不能忍 自己试验下 1.增加一个final编译一下,再删掉就不会出红线了 public clas ...
 - IntelliJ Idea设置Could not autowire. No beans of 'xxx' type found
		
1.问题描述 在Idea的spring工程里,经常会遇到Could not autowire. No beans of ‘xxxx’ type found的错误提示.但程序的编译和运行都是没有问题的, ...
 - Could not autowire. No beans of 'TbItemMapper' type found. less... (Ctrl+F1)  Checks autowiring prob
		
Intellij Idea开发工具在@Autowired或者@Resource注入XxxMapper接口时报如下错误: Could not autowire. No beans of 'TbItemM ...
 
随机推荐
- docker环境部署mysql
			
参考文档 docker官方:https://hub.docker.com/_/mysql/?tab=description 部署步骤 1. 拉取镜像 这里我拉取了tag为5.7的镜像 docker p ...
 - Python 脚本语言
			
python 脚本语言(python的命名起源于一个脚本screenplay,每次运行都会使对话框逐字重复.由著名的“龟叔”Guido van Rossum在1989年圣诞节期间编写.) Python ...
 - ajax快速入门
			
一.ajax简单入门 1.Ajax的实现步骤 // 1.创建ajax对象var xhr = new XMLHttpRequest();// 2.高数ajax请求地址及请求方式//第一个参数就是请求方式 ...
 - 金字塔卷积:Pyramidal Convolution
			
论文地址:https://arxiv.org/pdf/2006.11538.pdf github:https://github.com/iduta/pyconv 作者认为,当前CNN主要存在两个不足: ...
 - 从element-ui按需引入去探索
			
element-ui的按需引入的配置:文档地址 npm install babel-plugin-component -D { "presets": [["es2015& ...
 - 第十四章 JDK新特性回顾
			
14.1.JDK5新特性回顾 自动装箱.拆箱 静态导入 增强for循环 可变参数 枚举 泛型 元数据 14.2.JDK7新特性回顾 对Java集合(Collections)的增强支持 在switch中 ...
 - 你不知道的JavaScript 上卷  2/11
			
第一部分——作用域和闭包 第一章 作用域是什么 1.几乎所有编程语言最基本的功能之一,就是能够储存变量当中的值,并且能在之后对这个值进行访问或修改.事实上,正是这种储存和访问变量的值的能力将状态带给了 ...
 - Webpack 原理浅析
			
作者: 凹凸曼 - 风魔小次郎 背景 Webpack 迭代到4.x版本后,其源码已经十分庞大,对各种开发场景进行了高度抽象,阅读成本也愈发昂贵.但是为了了解其内部的工作原理,让我们尝试从一个最简单的 ...
 - pandas_一维数组与常用操作
			
# 一维数组与常用操作 import pandas as pd # 设置输出结果列对齐 pd.set_option('display.unicode.ambiguous_as_wide',True) ...
 - Python Tuple(元组) len()方法
			
描述 Python 元组 len() 函数计算元组元素个数.高佣联盟 www.cgewang.com 语法 len()方法语法: len(tuple) 参数 tuple -- 要计算的元组. 返回值 ...