IntelliJ IDEA 创建SpringBoot项目报错: 程序包org.springframework.boot不存在

解决方案:
在pom.xml配置文件中添加依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-aop</artifactId>
</dependency>

如果添加后依然报错可以重新加载maven包

1. Build-->Rebulid Project 就好了

2. 在项目根目录执行cmd 
mvn clean install -Dmaven.test.skip=true

3. File-->Settings  然后找到相对于菜单按图 编号顺序操作,项目右键->Maven->Reimport;

原文地址:https://www.cnblogs.com/iwyou/p/12149797.html

时间: 2024-08-03 15:09:43

IntelliJ IDEA 创建SpringBoot项目报错: 程序包org.springframework.boot不存在的相关文章

创建maven项目报错

我在自己的电脑上装了一个MyEclipse6.5 和spring tools suit 3.5.1  因为sts自带了maven插件,所以只要在 preference里面配置下maven的本地路径和settings文件的本地路径就可以了, 配置完了之后 我在MyEclipse和sts里面都导入了maven项目 都可以运行,我就觉得maven配置好了,但是我在sts里面创建maven项目的时候报错 Could not calculate build plan: Plugin org.apache.

运行springboot项目报错:Field userMapper in XX required a bean of type &#39;xx&#39; that could not be found.

运行springboot项目报错: *************************** APPLICATION FAILED TO START *************************** Description: Field userMapper in com.whohim.springboot.service.impl.UserServiceImpl required a bean of type 'com.whohim.springboot.dao.UserMapper' t

intellij idea更新gradle项目报错:Could not run build action using Gradle distribution

intellij idea更新gradle项目报错:Could not run build action using Gradle distributionintellij idea中有一个gradle项目,之前都一直是好好的. 今天在build.gradle中添加了一个dependency,由于我并没有设置auto-import,所以选择自己来refresh整个gradle项目 结果gradle task后台stuck在 resolve detachconfiguration3这里,点击can

IDEA创建maven项目报错解决:Failed to create a Maven project: &#39;C:/Users/../IdeaProjects/../pom.xml&#39; already e

晚上用IDEA创建Java的maven项目时报错了: Failed to create a Maven project: 'C:/Users/../IdeaProjects/../pom.xml' already exists in VFS1这个错误是因为之前我已经在这个文件夹里创建过同名的maven项目. 解决方法如下: 先把这个项目删了,然后把回收站中的这个项目和之前同名的项目一起彻底删除,重新创建一遍就不会报错了 IDEA创建maven项目报错解决:Failed to create a M

创建Java项目报错处理

好久没用Eclipse编写Java程序了,今天创建一个Java项目的时候,老报错,错误信息如下: Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor 解决方案:把java的类库加载进去,在工程上右键选择属性->Java Build Path的Libraries->Add Library选择JRE System Library-&

Net Core通用主机项目报错 程序不包含适合于入口点的静态Main

Net Core通用主机的介绍: https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-2.1 参考官网教程编写代码,编译报错:错误         CS5001     程序不包含适合于入口点的静态 "Main" 方法 错误代码public static async Task Main(string[] args) 问题原因:async Task Main

Eclipse maven创建web项目报错Could not resolve archetype

1.下载http://repo1.maven.org/maven2/archetype-catalog.xml 通过eclipse下载和网页下载我这里都比较慢,最后用的迅雷下载 2.将本地xml文件配置到eclipse中 依次打开windows--preferences--maven--archetypes--add local catalog 3.选择下载的xml文件,description随便填写,例如maven_catalog 4.创建项目,这一步时,catalog选择自己导入的,里面东西

springboot 项目报错问题的解决

报错如下: java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132) at org.springframework.test.context

Eclipse-Mars Release (4.5.0)创建Maven项目报错

1.Eclipseb版本为Mars Release (4.5.0) 2.报错内容 Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved:.................................... 3.解决方法 找到本地仓库位置,将仓库中的/org/apache